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 Presentable
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
# Makes api V4 compatible with old project features permissions methods
#
# After migrating issues_enabled merge_requests_enabled builds_enabled snippets_enabled and wiki_enabled
Loading
Loading
# frozen_string_literal: true
module PrometheusAdapter
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module ProtectedBranchAccess
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module ProtectedRef
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module ProtectedRefAccess
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module ProtectedTagAccess
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
# 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
# requested. If the data hasn't been requested for +reactive_cache_lifetime+,
Loading
Loading
# frozen_string_literal: true
module ReactiveService
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module RedisCacheable
extend ActiveSupport::Concern
include Gitlab::Utils::StrongMemoize
Loading
Loading
# frozen_string_literal: true
# == Referable concern
#
# Contains functionality related to making a model referable in Markdown, such
Loading
Loading
# frozen_string_literal: true
module RelativePositioning
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module ResolvableDiscussion
extend ActiveSupport::Concern
include ::Gitlab::Utils::StrongMemoize
Loading
Loading
# frozen_string_literal: true
module ResolvableNote
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
# 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.
module Routable
Loading
Loading
# frozen_string_literal: true
module SelectForProjectAuthorization
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module ShaAttribute
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
# == Sortable concern
#
# Set default scope for ordering objects
Loading
Loading
# frozen_string_literal: true
module Spammable
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module Storage
module LegacyNamespace
extend ActiveSupport::Concern
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