Skip to content
Snippets Groups Projects
Commit 15b878e2 authored by gfyoung's avatar gfyoung
Browse files

Enable more frozen string in app/models/**/*.rb

Partially addresses #47424.
parent b211f7c2
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 40 additions and 0 deletions
# frozen_string_literal: true
module DiffViewer
class Image < Base
include Rich
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class ModeChanged < Base
include Simple
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class NoPreview < Base
include Simple
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class NotDiffable < Base
include Simple
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class Renamed < Base
include Simple
Loading
Loading
# frozen_string_literal: true
module DiffViewer
module Rich
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
module DiffViewer
module ServerSide
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
module DiffViewer
module Simple
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
module DiffViewer
module Static
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class Text < Base
include Simple
Loading
Loading
# frozen_string_literal: true
class ProjectHook < WebHook
include TriggerableHooks
 
Loading
Loading
# frozen_string_literal: true
class ServiceHook < WebHook
belongs_to :service
validates :service, presence: true
Loading
Loading
# frozen_string_literal: true
class SystemHook < WebHook
include TriggerableHooks
 
Loading
Loading
# frozen_string_literal: true
class WebHook < ActiveRecord::Base
include Sortable
 
Loading
Loading
# frozen_string_literal: true
class WebHookLog < ActiveRecord::Base
belongs_to :web_hook
 
Loading
Loading
# frozen_string_literal: true
class Issue::Metrics < ActiveRecord::Base
belongs_to :issue
 
Loading
Loading
# frozen_string_literal: true
class GroupMember < Member
SOURCE_TYPE = 'Namespace'.freeze
 
Loading
Loading
# frozen_string_literal: true
class ProjectMember < Member
SOURCE_TYPE = 'Project'.freeze
 
Loading
Loading
# frozen_string_literal: true
class MergeRequest::Metrics < ActiveRecord::Base
belongs_to :merge_request
belongs_to :pipeline, class_name: 'Ci::Pipeline', foreign_key: :pipeline_id
Loading
Loading
# frozen_string_literal: true
module Network
class Commit
include ActionView::Helpers::TagHelper
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment