Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
15b878e2
Commit
15b878e2
authored
Aug 03, 2018
by
gfyoung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable more frozen string in app/models/**/*.rb
Partially addresses #47424.
parent
b211f7c2
Changes
101
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
101 changed files
with
205 additions
and
2 deletions
+205
-2
app/models/concerns/access_requestable.rb
app/models/concerns/access_requestable.rb
+2
-0
app/models/concerns/artifact_migratable.rb
app/models/concerns/artifact_migratable.rb
+2
-0
app/models/concerns/atomic_internal_id.rb
app/models/concerns/atomic_internal_id.rb
+2
-0
app/models/concerns/avatarable.rb
app/models/concerns/avatarable.rb
+5
-2
app/models/concerns/awardable.rb
app/models/concerns/awardable.rb
+2
-0
app/models/concerns/batch_destroy_dependent_associations.rb
app/models/concerns/batch_destroy_dependent_associations.rb
+2
-0
app/models/concerns/blob_like.rb
app/models/concerns/blob_like.rb
+2
-0
app/models/concerns/blocks_json_serialization.rb
app/models/concerns/blocks_json_serialization.rb
+2
-0
app/models/concerns/bulk_member_access_load.rb
app/models/concerns/bulk_member_access_load.rb
+2
-0
app/models/concerns/cache_markdown_field.rb
app/models/concerns/cache_markdown_field.rb
+2
-0
app/models/concerns/cacheable_attributes.rb
app/models/concerns/cacheable_attributes.rb
+2
-0
app/models/concerns/case_sensitivity.rb
app/models/concerns/case_sensitivity.rb
+2
-0
app/models/concerns/chronic_duration_attribute.rb
app/models/concerns/chronic_duration_attribute.rb
+2
-0
app/models/concerns/created_at_filterable.rb
app/models/concerns/created_at_filterable.rb
+2
-0
app/models/concerns/deployment_platform.rb
app/models/concerns/deployment_platform.rb
+2
-0
app/models/concerns/diff_file.rb
app/models/concerns/diff_file.rb
+2
-0
app/models/concerns/discussion_on_diff.rb
app/models/concerns/discussion_on_diff.rb
+2
-0
app/models/concerns/each_batch.rb
app/models/concerns/each_batch.rb
+2
-0
app/models/concerns/editable.rb
app/models/concerns/editable.rb
+2
-0
app/models/concerns/enum_with_nil.rb
app/models/concerns/enum_with_nil.rb
+2
-0
app/models/concerns/expirable.rb
app/models/concerns/expirable.rb
+2
-0
app/models/concerns/fast_destroy_all.rb
app/models/concerns/fast_destroy_all.rb
+2
-0
app/models/concerns/faster_cache_keys.rb
app/models/concerns/faster_cache_keys.rb
+2
-0
app/models/concerns/feature_gate.rb
app/models/concerns/feature_gate.rb
+2
-0
app/models/concerns/ghost_user.rb
app/models/concerns/ghost_user.rb
+2
-0
app/models/concerns/group_descendant.rb
app/models/concerns/group_descendant.rb
+2
-0
app/models/concerns/has_status.rb
app/models/concerns/has_status.rb
+2
-0
app/models/concerns/has_variable.rb
app/models/concerns/has_variable.rb
+2
-0
app/models/concerns/ignorable_column.rb
app/models/concerns/ignorable_column.rb
+2
-0
app/models/concerns/iid_routes.rb
app/models/concerns/iid_routes.rb
+2
-0
app/models/concerns/importable.rb
app/models/concerns/importable.rb
+2
-0
app/models/concerns/issuable.rb
app/models/concerns/issuable.rb
+2
-0
app/models/concerns/loaded_in_group_list.rb
app/models/concerns/loaded_in_group_list.rb
+2
-0
app/models/concerns/manual_inverse_association.rb
app/models/concerns/manual_inverse_association.rb
+2
-0
app/models/concerns/mentionable.rb
app/models/concerns/mentionable.rb
+2
-0
app/models/concerns/mentionable/reference_regexes.rb
app/models/concerns/mentionable/reference_regexes.rb
+2
-0
app/models/concerns/milestoneish.rb
app/models/concerns/milestoneish.rb
+2
-0
app/models/concerns/note_on_diff.rb
app/models/concerns/note_on_diff.rb
+2
-0
app/models/concerns/noteable.rb
app/models/concerns/noteable.rb
+2
-0
app/models/concerns/participable.rb
app/models/concerns/participable.rb
+2
-0
app/models/concerns/presentable.rb
app/models/concerns/presentable.rb
+2
-0
app/models/concerns/project_features_compatibility.rb
app/models/concerns/project_features_compatibility.rb
+2
-0
app/models/concerns/prometheus_adapter.rb
app/models/concerns/prometheus_adapter.rb
+2
-0
app/models/concerns/protected_branch_access.rb
app/models/concerns/protected_branch_access.rb
+2
-0
app/models/concerns/protected_ref.rb
app/models/concerns/protected_ref.rb
+2
-0
app/models/concerns/protected_ref_access.rb
app/models/concerns/protected_ref_access.rb
+2
-0
app/models/concerns/protected_tag_access.rb
app/models/concerns/protected_tag_access.rb
+2
-0
app/models/concerns/reactive_caching.rb
app/models/concerns/reactive_caching.rb
+2
-0
app/models/concerns/reactive_service.rb
app/models/concerns/reactive_service.rb
+2
-0
app/models/concerns/redis_cacheable.rb
app/models/concerns/redis_cacheable.rb
+2
-0
app/models/concerns/referable.rb
app/models/concerns/referable.rb
+2
-0
app/models/concerns/relative_positioning.rb
app/models/concerns/relative_positioning.rb
+2
-0
app/models/concerns/resolvable_discussion.rb
app/models/concerns/resolvable_discussion.rb
+2
-0
app/models/concerns/resolvable_note.rb
app/models/concerns/resolvable_note.rb
+2
-0
app/models/concerns/routable.rb
app/models/concerns/routable.rb
+2
-0
app/models/concerns/select_for_project_authorization.rb
app/models/concerns/select_for_project_authorization.rb
+2
-0
app/models/concerns/sha_attribute.rb
app/models/concerns/sha_attribute.rb
+2
-0
app/models/concerns/sortable.rb
app/models/concerns/sortable.rb
+2
-0
app/models/concerns/spammable.rb
app/models/concerns/spammable.rb
+2
-0
app/models/concerns/storage/legacy_namespace.rb
app/models/concerns/storage/legacy_namespace.rb
+2
-0
app/models/concerns/storage/legacy_project_wiki.rb
app/models/concerns/storage/legacy_project_wiki.rb
+2
-0
app/models/concerns/storage/legacy_repository.rb
app/models/concerns/storage/legacy_repository.rb
+2
-0
app/models/concerns/strip_attribute.rb
app/models/concerns/strip_attribute.rb
+2
-0
app/models/concerns/subscribable.rb
app/models/concerns/subscribable.rb
+2
-0
app/models/concerns/taskable.rb
app/models/concerns/taskable.rb
+2
-0
app/models/concerns/throttled_touch.rb
app/models/concerns/throttled_touch.rb
+2
-0
app/models/concerns/time_trackable.rb
app/models/concerns/time_trackable.rb
+2
-0
app/models/concerns/token_authenticatable.rb
app/models/concerns/token_authenticatable.rb
+2
-0
app/models/concerns/triggerable_hooks.rb
app/models/concerns/triggerable_hooks.rb
+2
-0
app/models/concerns/uniquify.rb
app/models/concerns/uniquify.rb
+2
-0
app/models/concerns/updated_at_filterable.rb
app/models/concerns/updated_at_filterable.rb
+2
-0
app/models/concerns/valid_attribute.rb
app/models/concerns/valid_attribute.rb
+2
-0
app/models/concerns/with_uploads.rb
app/models/concerns/with_uploads.rb
+2
-0
app/models/conversational_development_index/card.rb
app/models/conversational_development_index/card.rb
+2
-0
app/models/conversational_development_index/idea_to_production_step.rb
...nversational_development_index/idea_to_production_step.rb
+2
-0
app/models/conversational_development_index/metric.rb
app/models/conversational_development_index/metric.rb
+2
-0
app/models/diff_viewer/added.rb
app/models/diff_viewer/added.rb
+2
-0
app/models/diff_viewer/base.rb
app/models/diff_viewer/base.rb
+2
-0
app/models/diff_viewer/client_side.rb
app/models/diff_viewer/client_side.rb
+2
-0
app/models/diff_viewer/deleted.rb
app/models/diff_viewer/deleted.rb
+2
-0
app/models/diff_viewer/image.rb
app/models/diff_viewer/image.rb
+2
-0
app/models/diff_viewer/mode_changed.rb
app/models/diff_viewer/mode_changed.rb
+2
-0
app/models/diff_viewer/no_preview.rb
app/models/diff_viewer/no_preview.rb
+2
-0
app/models/diff_viewer/not_diffable.rb
app/models/diff_viewer/not_diffable.rb
+2
-0
app/models/diff_viewer/renamed.rb
app/models/diff_viewer/renamed.rb
+2
-0
app/models/diff_viewer/rich.rb
app/models/diff_viewer/rich.rb
+2
-0
app/models/diff_viewer/server_side.rb
app/models/diff_viewer/server_side.rb
+2
-0
app/models/diff_viewer/simple.rb
app/models/diff_viewer/simple.rb
+2
-0
app/models/diff_viewer/static.rb
app/models/diff_viewer/static.rb
+2
-0
app/models/diff_viewer/text.rb
app/models/diff_viewer/text.rb
+2
-0
app/models/hooks/project_hook.rb
app/models/hooks/project_hook.rb
+2
-0
app/models/hooks/service_hook.rb
app/models/hooks/service_hook.rb
+2
-0
app/models/hooks/system_hook.rb
app/models/hooks/system_hook.rb
+2
-0
app/models/hooks/web_hook.rb
app/models/hooks/web_hook.rb
+2
-0
app/models/hooks/web_hook_log.rb
app/models/hooks/web_hook_log.rb
+2
-0
app/models/issue/metrics.rb
app/models/issue/metrics.rb
+2
-0
app/models/members/group_member.rb
app/models/members/group_member.rb
+2
-0
app/models/members/project_member.rb
app/models/members/project_member.rb
+2
-0
app/models/merge_request/metrics.rb
app/models/merge_request/metrics.rb
+2
-0
app/models/network/commit.rb
app/models/network/commit.rb
+2
-0
app/models/network/graph.rb
app/models/network/graph.rb
+2
-0
No files found.
app/models/concerns/access_requestable.rb
View file @
15b878e2
# frozen_string_literal: true
# == AccessRequestable concern
# == AccessRequestable concern
#
#
# Contains functionality related to objects that can receive request for access.
# Contains functionality related to objects that can receive request for access.
...
...
app/models/concerns/artifact_migratable.rb
View file @
15b878e2
# frozen_string_literal: true
# Adapter class to unify the interface between mounted uploaders and the
# Adapter class to unify the interface between mounted uploaders and the
# Ci::Artifact model
# Ci::Artifact model
# Meant to be prepended so the interface can stay the same
# Meant to be prepended so the interface can stay the same
...
...
app/models/concerns/atomic_internal_id.rb
View file @
15b878e2
# frozen_string_literal: true
# Include atomic internal id generation scheme for a model
# Include atomic internal id generation scheme for a model
#
#
# This allows us to atomically generate internal ids that are
# This allows us to atomically generate internal ids that are
...
...
app/models/concerns/avatarable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Avatarable
module
Avatarable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
@@ -57,7 +59,8 @@ module Avatarable
...
@@ -57,7 +59,8 @@ module Avatarable
only_path
=
false
only_path
=
false
end
end
url_base
=
""
url_base
=
[]
if
use_asset_host
if
use_asset_host
url_base
<<
asset_host
unless
only_path
url_base
<<
asset_host
unless
only_path
else
else
...
@@ -65,7 +68,7 @@ module Avatarable
...
@@ -65,7 +68,7 @@ module Avatarable
url_base
<<
gitlab_config
.
relative_url_root
url_base
<<
gitlab_config
.
relative_url_root
end
end
url_base
+
avatar
.
local_url
+
query_params
url_base
.
join
+
avatar
.
local_url
+
query_params
end
end
# Path that is persisted in the tracking Upload model. Used to fetch the
# Path that is persisted in the tracking Upload model. Used to fetch the
...
...
app/models/concerns/awardable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Awardable
module
Awardable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/batch_destroy_dependent_associations.rb
View file @
15b878e2
# frozen_string_literal: true
# Provides a way to work around Rails issue where dependent objects are all
# Provides a way to work around Rails issue where dependent objects are all
# loaded into memory before destroyed: https://github.com/rails/rails/issues/22510.
# loaded into memory before destroyed: https://github.com/rails/rails/issues/22510.
#
#
...
...
app/models/concerns/blob_like.rb
View file @
15b878e2
# frozen_string_literal: true
module
BlobLike
module
BlobLike
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
include
Linguist
::
BlobHelper
include
Linguist
::
BlobHelper
...
...
app/models/concerns/blocks_json_serialization.rb
View file @
15b878e2
# frozen_string_literal: true
# Overrides `as_json` and `to_json` to raise an exception when called in order
# Overrides `as_json` and `to_json` to raise an exception when called in order
# to prevent accidentally exposing attributes
# to prevent accidentally exposing attributes
#
#
...
...
app/models/concerns/bulk_member_access_load.rb
View file @
15b878e2
# frozen_string_literal: true
# Returns and caches in thread max member access for a resource
# Returns and caches in thread max member access for a resource
#
#
module
BulkMemberAccessLoad
module
BulkMemberAccessLoad
...
...
app/models/concerns/cache_markdown_field.rb
View file @
15b878e2
# frozen_string_literal: true
# This module takes care of updating cache columns for Markdown-containing
# This module takes care of updating cache columns for Markdown-containing
# fields. Use like this in the body of your class:
# fields. Use like this in the body of your class:
#
#
...
...
app/models/concerns/cacheable_attributes.rb
View file @
15b878e2
# frozen_string_literal: true
module
CacheableAttributes
module
CacheableAttributes
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/case_sensitivity.rb
View file @
15b878e2
# frozen_string_literal: true
# Concern for querying columns with specific case sensitivity handling.
# Concern for querying columns with specific case sensitivity handling.
module
CaseSensitivity
module
CaseSensitivity
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/chronic_duration_attribute.rb
View file @
15b878e2
# frozen_string_literal: true
module
ChronicDurationAttribute
module
ChronicDurationAttribute
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/created_at_filterable.rb
View file @
15b878e2
# frozen_string_literal: true
module
CreatedAtFilterable
module
CreatedAtFilterable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/deployment_platform.rb
View file @
15b878e2
# frozen_string_literal: true
module
DeploymentPlatform
module
DeploymentPlatform
# EE would override this and utilize environment argument
# EE would override this and utilize environment argument
# rubocop:disable Gitlab/ModuleWithInstanceVariables
# rubocop:disable Gitlab/ModuleWithInstanceVariables
...
...
app/models/concerns/diff_file.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffFile
module
DiffFile
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/discussion_on_diff.rb
View file @
15b878e2
# frozen_string_literal: true
# Contains functionality shared between `DiffDiscussion` and `LegacyDiffDiscussion`.
# Contains functionality shared between `DiffDiscussion` and `LegacyDiffDiscussion`.
module
DiscussionOnDiff
module
DiscussionOnDiff
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/each_batch.rb
View file @
15b878e2
# frozen_string_literal: true
module
EachBatch
module
EachBatch
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/editable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Editable
module
Editable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/enum_with_nil.rb
View file @
15b878e2
# frozen_string_literal: true
module
EnumWithNil
module
EnumWithNil
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/expirable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Expirable
module
Expirable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/fast_destroy_all.rb
View file @
15b878e2
# frozen_string_literal: true
##
##
# This module is for replacing `dependent: :destroy` and `before_destroy` hooks.
# This module is for replacing `dependent: :destroy` and `before_destroy` hooks.
#
#
...
...
app/models/concerns/faster_cache_keys.rb
View file @
15b878e2
# frozen_string_literal: true
module
FasterCacheKeys
module
FasterCacheKeys
# A faster version of Rails' "cache_key" method.
# A faster version of Rails' "cache_key" method.
#
#
...
...
app/models/concerns/feature_gate.rb
View file @
15b878e2
# frozen_string_literal: true
module
FeatureGate
module
FeatureGate
def
flipper_id
def
flipper_id
return
nil
if
new_record?
return
nil
if
new_record?
...
...
app/models/concerns/ghost_user.rb
View file @
15b878e2
# frozen_string_literal: true
module
GhostUser
module
GhostUser
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/group_descendant.rb
View file @
15b878e2
# frozen_string_literal: true
module
GroupDescendant
module
GroupDescendant
# Returns the hierarchy of a project or group in the from of a hash upto a
# Returns the hierarchy of a project or group in the from of a hash upto a
# given top.
# given top.
...
...
app/models/concerns/has_status.rb
View file @
15b878e2
# frozen_string_literal: true
module
HasStatus
module
HasStatus
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/has_variable.rb
View file @
15b878e2
# frozen_string_literal: true
module
HasVariable
module
HasVariable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/ignorable_column.rb
View file @
15b878e2
# frozen_string_literal: true
# Module that can be included into a model to make it easier to ignore database
# Module that can be included into a model to make it easier to ignore database
# columns.
# columns.
#
#
...
...
app/models/concerns/iid_routes.rb
View file @
15b878e2
# frozen_string_literal: true
module
IidRoutes
module
IidRoutes
##
##
# This automagically enforces all related routes to use `iid` instead of `id`
# This automagically enforces all related routes to use `iid` instead of `id`
...
...
app/models/concerns/importable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Importable
module
Importable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/issuable.rb
View file @
15b878e2
# frozen_string_literal: true
# == Issuable concern
# == Issuable concern
#
#
# Contains common functionality shared between Issues and MergeRequests
# Contains common functionality shared between Issues and MergeRequests
...
...
app/models/concerns/loaded_in_group_list.rb
View file @
15b878e2
# frozen_string_literal: true
module
LoadedInGroupList
module
LoadedInGroupList
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/manual_inverse_association.rb
View file @
15b878e2
# frozen_string_literal: true
module
ManualInverseAssociation
module
ManualInverseAssociation
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/mentionable.rb
View file @
15b878e2
# frozen_string_literal: true
# == Mentionable concern
# == Mentionable concern
#
#
# Contains functionality related to objects that can mention Users, Issues, MergeRequests, Commits or Snippets by
# Contains functionality related to objects that can mention Users, Issues, MergeRequests, Commits or Snippets by
...
...
app/models/concerns/mentionable/reference_regexes.rb
View file @
15b878e2
# frozen_string_literal: true
module
Mentionable
module
Mentionable
module
ReferenceRegexes
module
ReferenceRegexes
def
self
.
reference_pattern
(
link_patterns
,
issue_pattern
)
def
self
.
reference_pattern
(
link_patterns
,
issue_pattern
)
...
...
app/models/concerns/milestoneish.rb
View file @
15b878e2
# frozen_string_literal: true
module
Milestoneish
module
Milestoneish
def
closed_items_count
(
user
)
def
closed_items_count
(
user
)
memoize_per_user
(
user
,
:closed_items_count
)
do
memoize_per_user
(
user
,
:closed_items_count
)
do
...
...
app/models/concerns/note_on_diff.rb
View file @
15b878e2
# frozen_string_literal: true
# Contains functionality shared between `DiffNote` and `LegacyDiffNote`.
# Contains functionality shared between `DiffNote` and `LegacyDiffNote`.
module
NoteOnDiff
module
NoteOnDiff
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/noteable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Noteable
module
Noteable
# Names of all implementers of `Noteable` that support resolvable notes.
# Names of all implementers of `Noteable` that support resolvable notes.
RESOLVABLE_TYPES
=
%w(MergeRequest)
.
freeze
RESOLVABLE_TYPES
=
%w(MergeRequest)
.
freeze
...
...
app/models/concerns/participable.rb
View file @
15b878e2
# frozen_string_literal: true
# == Participable concern
# == Participable concern
#
#
# Contains functionality related to objects that can have participants, such as
# Contains functionality related to objects that can have participants, such as
...
...
app/models/concerns/presentable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Presentable
module
Presentable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/project_features_compatibility.rb
View file @
15b878e2
# frozen_string_literal: true
# Makes api V4 compatible with old project features permissions methods
# Makes api V4 compatible with old project features permissions methods
#
#
# After migrating issues_enabled merge_requests_enabled builds_enabled snippets_enabled and wiki_enabled
# After migrating issues_enabled merge_requests_enabled builds_enabled snippets_enabled and wiki_enabled
...
...
app/models/concerns/prometheus_adapter.rb
View file @
15b878e2
# frozen_string_literal: true
module
PrometheusAdapter
module
PrometheusAdapter
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/protected_branch_access.rb
View file @
15b878e2
# frozen_string_literal: true
module
ProtectedBranchAccess
module
ProtectedBranchAccess
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/protected_ref.rb
View file @
15b878e2
# frozen_string_literal: true
module
ProtectedRef
module
ProtectedRef
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/protected_ref_access.rb
View file @
15b878e2
# frozen_string_literal: true
module
ProtectedRefAccess
module
ProtectedRefAccess
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/protected_tag_access.rb
View file @
15b878e2
# frozen_string_literal: true
module
ProtectedTagAccess
module
ProtectedTagAccess
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/reactive_caching.rb
View file @
15b878e2
# frozen_string_literal: true
# The ReactiveCaching concern is used to fetch some data in the background and
# The ReactiveCaching concern is used to fetch some data in the background and
# store it in the Rails cache, keeping it up-to-date for as long as it is being
# store it in the Rails cache, keeping it up-to-date for as long as it is being
# requested. If the data hasn't been requested for +reactive_cache_lifetime+,
# requested. If the data hasn't been requested for +reactive_cache_lifetime+,
...
...
app/models/concerns/reactive_service.rb
View file @
15b878e2
# frozen_string_literal: true
module
ReactiveService
module
ReactiveService
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/redis_cacheable.rb
View file @
15b878e2
# frozen_string_literal: true
module
RedisCacheable
module
RedisCacheable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
include
Gitlab
::
Utils
::
StrongMemoize
include
Gitlab
::
Utils
::
StrongMemoize
...
...
app/models/concerns/referable.rb
View file @
15b878e2
# frozen_string_literal: true
# == Referable concern
# == Referable concern
#
#
# Contains functionality related to making a model referable in Markdown, such
# Contains functionality related to making a model referable in Markdown, such
...
...
app/models/concerns/relative_positioning.rb
View file @
15b878e2
# frozen_string_literal: true
module
RelativePositioning
module
RelativePositioning
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/resolvable_discussion.rb
View file @
15b878e2
# frozen_string_literal: true
module
ResolvableDiscussion
module
ResolvableDiscussion
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
include
::
Gitlab
::
Utils
::
StrongMemoize
include
::
Gitlab
::
Utils
::
StrongMemoize
...
...
app/models/concerns/resolvable_note.rb
View file @
15b878e2
# frozen_string_literal: true
module
ResolvableNote
module
ResolvableNote
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/routable.rb
View file @
15b878e2
# frozen_string_literal: true
# Store object full path in separate table for easy lookup and uniq validation
# Store object full path in separate table for easy lookup and uniq validation
# Object must have name and path db fields and respond to parent and parent_changed? methods.
# Object must have name and path db fields and respond to parent and parent_changed? methods.
module
Routable
module
Routable
...
...
app/models/concerns/select_for_project_authorization.rb
View file @
15b878e2
# frozen_string_literal: true
module
SelectForProjectAuthorization
module
SelectForProjectAuthorization
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/sha_attribute.rb
View file @
15b878e2
# frozen_string_literal: true
module
ShaAttribute
module
ShaAttribute
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/sortable.rb
View file @
15b878e2
# frozen_string_literal: true
# == Sortable concern
# == Sortable concern
#
#
# Set default scope for ordering objects
# Set default scope for ordering objects
...
...
app/models/concerns/spammable.rb
View file @
15b878e2
# frozen_string_literal: true
module
Spammable
module
Spammable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/storage/legacy_namespace.rb
View file @
15b878e2
# frozen_string_literal: true
module
Storage
module
Storage
module
LegacyNamespace
module
LegacyNamespace
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/storage/legacy_project_wiki.rb
View file @
15b878e2
# frozen_string_literal: true
module
Storage
module
Storage
module
LegacyProjectWiki
module
LegacyProjectWiki
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/storage/legacy_repository.rb
View file @
15b878e2
# frozen_string_literal: true
module
Storage
module
Storage
module
LegacyRepository
module
LegacyRepository
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/strip_attribute.rb
View file @
15b878e2
# frozen_string_literal: true
# == Strip Attribute module
# == Strip Attribute module
#
#
# Contains functionality to clean attributes before validation
# Contains functionality to clean attributes before validation
...
...
app/models/concerns/subscribable.rb
View file @
15b878e2
# frozen_string_literal: true
# == Subscribable concern
# == Subscribable concern
#
#
# Users can subscribe to these models.
# Users can subscribe to these models.
...
...
app/models/concerns/taskable.rb
View file @
15b878e2
# frozen_string_literal: true
require
'task_list'
require
'task_list'
require
'task_list/filter'
require
'task_list/filter'
...
...
app/models/concerns/throttled_touch.rb
View file @
15b878e2
# frozen_string_literal: true
# ThrottledTouch can be used to throttle the number of updates triggered by
# ThrottledTouch can be used to throttle the number of updates triggered by
# calling "touch" on an ActiveRecord model.
# calling "touch" on an ActiveRecord model.
module
ThrottledTouch
module
ThrottledTouch
...
...
app/models/concerns/time_trackable.rb
View file @
15b878e2
# frozen_string_literal: true
# == TimeTrackable concern
# == TimeTrackable concern
#
#
# Contains functionality related to objects that support time tracking.
# Contains functionality related to objects that support time tracking.
...
...
app/models/concerns/token_authenticatable.rb
View file @
15b878e2
# frozen_string_literal: true
module
TokenAuthenticatable
module
TokenAuthenticatable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/triggerable_hooks.rb
View file @
15b878e2
# frozen_string_literal: true
module
TriggerableHooks
module
TriggerableHooks
AVAILABLE_TRIGGERS
=
{
AVAILABLE_TRIGGERS
=
{
repository_update_hooks: :repository_update_events
,
repository_update_hooks: :repository_update_events
,
...
...
app/models/concerns/uniquify.rb
View file @
15b878e2
# frozen_string_literal: true
# Uniquify
# Uniquify
#
#
# Return a version of the given 'base' string that is unique
# Return a version of the given 'base' string that is unique
...
...
app/models/concerns/updated_at_filterable.rb
View file @
15b878e2
# frozen_string_literal: true
module
UpdatedAtFilterable
module
UpdatedAtFilterable
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/valid_attribute.rb
View file @
15b878e2
# frozen_string_literal: true
module
ValidAttribute
module
ValidAttribute
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/concerns/with_uploads.rb
View file @
15b878e2
# frozen_string_literal: true
# Mounted uploaders are destroyed by carrierwave's after_commit
# Mounted uploaders are destroyed by carrierwave's after_commit
# hook. This hook fetches upload location (local vs remote) from
# hook. This hook fetches upload location (local vs remote) from
# Upload model. So it's neccessary to make sure that during that
# Upload model. So it's neccessary to make sure that during that
...
...
app/models/conversational_development_index/card.rb
View file @
15b878e2
# frozen_string_literal: true
module
ConversationalDevelopmentIndex
module
ConversationalDevelopmentIndex
class
Card
class
Card
attr_accessor
:metric
,
:title
,
:description
,
:feature
,
:blog
,
:docs
attr_accessor
:metric
,
:title
,
:description
,
:feature
,
:blog
,
:docs
...
...
app/models/conversational_development_index/idea_to_production_step.rb
View file @
15b878e2
# frozen_string_literal: true
module
ConversationalDevelopmentIndex
module
ConversationalDevelopmentIndex
class
IdeaToProductionStep
class
IdeaToProductionStep
attr_accessor
:metric
,
:title
,
:features
attr_accessor
:metric
,
:title
,
:features
...
...
app/models/conversational_development_index/metric.rb
View file @
15b878e2
# frozen_string_literal: true
module
ConversationalDevelopmentIndex
module
ConversationalDevelopmentIndex
class
Metric
<
ActiveRecord
::
Base
class
Metric
<
ActiveRecord
::
Base
include
Presentable
include
Presentable
...
...
app/models/diff_viewer/added.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
Added
<
Base
class
Added
<
Base
include
Simple
include
Simple
...
...
app/models/diff_viewer/base.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
Base
class
Base
PARTIAL_PATH_PREFIX
=
'projects/diffs/viewers'
.
freeze
PARTIAL_PATH_PREFIX
=
'projects/diffs/viewers'
.
freeze
...
...
app/models/diff_viewer/client_side.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
module
ClientSide
module
ClientSide
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/diff_viewer/deleted.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
Deleted
<
Base
class
Deleted
<
Base
include
Simple
include
Simple
...
...
app/models/diff_viewer/image.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
Image
<
Base
class
Image
<
Base
include
Rich
include
Rich
...
...
app/models/diff_viewer/mode_changed.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
ModeChanged
<
Base
class
ModeChanged
<
Base
include
Simple
include
Simple
...
...
app/models/diff_viewer/no_preview.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
NoPreview
<
Base
class
NoPreview
<
Base
include
Simple
include
Simple
...
...
app/models/diff_viewer/not_diffable.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
NotDiffable
<
Base
class
NotDiffable
<
Base
include
Simple
include
Simple
...
...
app/models/diff_viewer/renamed.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
Renamed
<
Base
class
Renamed
<
Base
include
Simple
include
Simple
...
...
app/models/diff_viewer/rich.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
module
Rich
module
Rich
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/diff_viewer/server_side.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
module
ServerSide
module
ServerSide
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/diff_viewer/simple.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
module
Simple
module
Simple
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/diff_viewer/static.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
module
Static
module
Static
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
...
...
app/models/diff_viewer/text.rb
View file @
15b878e2
# frozen_string_literal: true
module
DiffViewer
module
DiffViewer
class
Text
<
Base
class
Text
<
Base
include
Simple
include
Simple
...
...
app/models/hooks/project_hook.rb
View file @
15b878e2
# frozen_string_literal: true
class
ProjectHook
<
WebHook
class
ProjectHook
<
WebHook
include
TriggerableHooks
include
TriggerableHooks
...
...
app/models/hooks/service_hook.rb
View file @
15b878e2
# frozen_string_literal: true
class
ServiceHook
<
WebHook
class
ServiceHook
<
WebHook
belongs_to
:service
belongs_to
:service
validates
:service
,
presence:
true
validates
:service
,
presence:
true
...
...
app/models/hooks/system_hook.rb
View file @
15b878e2
# frozen_string_literal: true
class
SystemHook
<
WebHook
class
SystemHook
<
WebHook
include
TriggerableHooks
include
TriggerableHooks
...
...
app/models/hooks/web_hook.rb
View file @
15b878e2
# frozen_string_literal: true
class
WebHook
<
ActiveRecord
::
Base
class
WebHook
<
ActiveRecord
::
Base
include
Sortable
include
Sortable
...
...
app/models/hooks/web_hook_log.rb
View file @
15b878e2
# frozen_string_literal: true
class
WebHookLog
<
ActiveRecord
::
Base
class
WebHookLog
<
ActiveRecord
::
Base
belongs_to
:web_hook
belongs_to
:web_hook
...
...
app/models/issue/metrics.rb
View file @
15b878e2
# frozen_string_literal: true
class
Issue::Metrics
<
ActiveRecord
::
Base
class
Issue::Metrics
<
ActiveRecord
::
Base
belongs_to
:issue
belongs_to
:issue
...
...
app/models/members/group_member.rb
View file @
15b878e2
# frozen_string_literal: true
class
GroupMember
<
Member
class
GroupMember
<
Member
SOURCE_TYPE
=
'Namespace'
.
freeze
SOURCE_TYPE
=
'Namespace'
.
freeze
...
...
app/models/members/project_member.rb
View file @
15b878e2
# frozen_string_literal: true
class
ProjectMember
<
Member
class
ProjectMember
<
Member
SOURCE_TYPE
=
'Project'
.
freeze
SOURCE_TYPE
=
'Project'
.
freeze
...
...
app/models/merge_request/metrics.rb
View file @
15b878e2
# frozen_string_literal: true
class
MergeRequest::Metrics
<
ActiveRecord
::
Base
class
MergeRequest::Metrics
<
ActiveRecord
::
Base
belongs_to
:merge_request
belongs_to
:merge_request
belongs_to
:pipeline
,
class_name:
'Ci::Pipeline'
,
foreign_key: :pipeline_id
belongs_to
:pipeline
,
class_name:
'Ci::Pipeline'
,
foreign_key: :pipeline_id
...
...
app/models/network/commit.rb
View file @
15b878e2
# frozen_string_literal: true
module
Network
module
Network
class
Commit
class
Commit
include
ActionView
::
Helpers
::
TagHelper
include
ActionView
::
Helpers
::
TagHelper
...
...
app/models/network/graph.rb
View file @
15b878e2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment