Skip to content
Snippets Groups Projects
Commit f20a40f4 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'frozen-string-enable-app-models' into 'master'

Enable frozen string in app/models/*.rb

See merge request gitlab-org/gitlab-ce!20851
parents 2deb97ad 50abbd3e
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
class ProjectTeam
include BulkMemberAccessLoad
 
Loading
Loading
# frozen_string_literal: true
class ProtectableDropdown
REF_TYPES = %i[branches tags].freeze
 
Loading
Loading
# frozen_string_literal: true
class ProtectedBranch < ActiveRecord::Base
include Gitlab::ShellAdapter
include ProtectedRef
Loading
Loading
# frozen_string_literal: true
class ProtectedRefMatcher
def initialize(protected_ref)
@protected_ref = protected_ref
Loading
Loading
# frozen_string_literal: true
class ProtectedTag < ActiveRecord::Base
include Gitlab::ShellAdapter
include ProtectedRef
Loading
Loading
# frozen_string_literal: true
class PushEvent < Event
# This validation exists so we can't accidentally use PushEvent with a
# different "action" value.
Loading
Loading
# frozen_string_literal: true
class PushEventPayload < ActiveRecord::Base
include ShaAttribute
 
Loading
Loading
# frozen_string_literal: true
class ReadmeBlob < SimpleDelegator
attr_reader :repository
 
Loading
Loading
# frozen_string_literal: true
class RedirectRoute < ActiveRecord::Base
belongs_to :source, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations
 
Loading
Loading
# frozen_string_literal: true
class Release < ActiveRecord::Base
include CacheMarkdownField
 
Loading
Loading
# frozen_string_literal: true
class RemoteMirror < ActiveRecord::Base
include AfterCommitQueue
 
Loading
Loading
# frozen_string_literal: true
require 'securerandom'
 
class Repository
Loading
Loading
# frozen_string_literal: true
class Route < ActiveRecord::Base
include CaseSensitivity
 
Loading
Loading
# frozen_string_literal: true
class SecurityEvent < AuditEvent
end
# frozen_string_literal: true
class SentNotification < ActiveRecord::Base
serialize :position, Gitlab::Diff::Position # rubocop:disable Cop/ActiveRecordSerialize
 
Loading
Loading
# frozen_string_literal: true
# To add new service you should build a class inherited from Service
# and implement a set of methods
class Service < ActiveRecord::Base
Loading
Loading
# frozen_string_literal: true
class Snippet < ActiveRecord::Base
include Gitlab::VisibilityLevel
include CacheMarkdownField
Loading
Loading
# frozen_string_literal: true
class SnippetBlob
include BlobLike
 
Loading
Loading
# frozen_string_literal: true
class SpamLog < ActiveRecord::Base
belongs_to :user
 
Loading
Loading
# frozen_string_literal: true
class Subscription < ActiveRecord::Base
belongs_to :user
belongs_to :project
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