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 GlobalLabel
attr_accessor :title, :labels
alias_attribute :name, :title
Loading
Loading
# frozen_string_literal: true
class GlobalMilestone
include Milestoneish
 
Loading
Loading
# frozen_string_literal: true
class GpgKey < ActiveRecord::Base
KEY_PREFIX = '-----BEGIN PGP PUBLIC KEY BLOCK-----'.freeze
KEY_SUFFIX = '-----END PGP PUBLIC KEY BLOCK-----'.freeze
Loading
Loading
# frozen_string_literal: true
class GpgKeySubkey < ActiveRecord::Base
include ShaAttribute
 
Loading
Loading
# frozen_string_literal: true
class GpgSignature < ActiveRecord::Base
include ShaAttribute
 
Loading
Loading
# frozen_string_literal: true
require 'carrierwave/orm/activerecord'
 
class Group < Namespace
Loading
Loading
# frozen_string_literal: true
class GroupCustomAttribute < ActiveRecord::Base
belongs_to :group
 
Loading
Loading
# frozen_string_literal: true
class GroupLabel < Label
belongs_to :group
 
Loading
Loading
# frozen_string_literal: true
class GroupMilestone < GlobalMilestone
attr_accessor :group
 
Loading
Loading
# frozen_string_literal: true
class Guest
class << self
def can?(action, subject = :global)
Loading
Loading
# frozen_string_literal: true
class Identity < ActiveRecord::Base
def self.uniqueness_scope
:provider
Loading
Loading
# frozen_string_literal: true
class ImportExportUpload < ActiveRecord::Base
include WithUploads
include ObjectStorage::BackgroundMove
Loading
Loading
# frozen_string_literal: true
# A discussion to wrap a single `Note` note on the root of an issue, merge request,
# commit, or snippet, that is not displayed as a discussion.
#
Loading
Loading
# frozen_string_literal: true
require 'resolv'
 
class InstanceConfiguration
Loading
Loading
# frozen_string_literal: true
# An InternalId is a strictly monotone sequence of integers
# generated for a given scope and usage.
#
Loading
Loading
# frozen_string_literal: true
require 'carrierwave/orm/activerecord'
 
class Issue < ActiveRecord::Base
Loading
Loading
# frozen_string_literal: true
class IssueAssignee < ActiveRecord::Base
belongs_to :issue
belongs_to :assignee, class_name: "User", foreign_key: :user_id
Loading
Loading
# frozen_string_literal: true
# IssueCollection can be used to reduce a list of issues down to a subset.
#
# IssueCollection is not meant to be some sort of Enumerable, instead it's meant
Loading
Loading
# frozen_string_literal: true
require 'digest/md5'
 
class Key < ActiveRecord::Base
Loading
Loading
# frozen_string_literal: true
class Label < ActiveRecord::Base
include CacheMarkdownField
include Referable
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