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 Storage
module LegacyProjectWiki
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
module Storage
module LegacyRepository
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
# == Strip Attribute module
#
# Contains functionality to clean attributes before validation
Loading
Loading
# frozen_string_literal: true
# == Subscribable concern
#
# Users can subscribe to these models.
Loading
Loading
# frozen_string_literal: true
require 'task_list'
require 'task_list/filter'
 
Loading
Loading
# frozen_string_literal: true
# ThrottledTouch can be used to throttle the number of updates triggered by
# calling "touch" on an ActiveRecord model.
module ThrottledTouch
Loading
Loading
# frozen_string_literal: true
# == TimeTrackable concern
#
# Contains functionality related to objects that support time tracking.
Loading
Loading
# frozen_string_literal: true
module TokenAuthenticatable
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module TriggerableHooks
AVAILABLE_TRIGGERS = {
repository_update_hooks: :repository_update_events,
Loading
Loading
# frozen_string_literal: true
# Uniquify
#
# Return a version of the given 'base' string that is unique
Loading
Loading
# frozen_string_literal: true
module UpdatedAtFilterable
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module ValidAttribute
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
# Mounted uploaders are destroyed by carrierwave's after_commit
# hook. This hook fetches upload location (local vs remote) from
# Upload model. So it's neccessary to make sure that during that
Loading
Loading
# frozen_string_literal: true
module ConversationalDevelopmentIndex
class Card
attr_accessor :metric, :title, :description, :feature, :blog, :docs
Loading
Loading
# frozen_string_literal: true
module ConversationalDevelopmentIndex
class IdeaToProductionStep
attr_accessor :metric, :title, :features
Loading
Loading
# frozen_string_literal: true
module ConversationalDevelopmentIndex
class Metric < ActiveRecord::Base
include Presentable
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class Added < Base
include Simple
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class Base
PARTIAL_PATH_PREFIX = 'projects/diffs/viewers'.freeze
Loading
Loading
# frozen_string_literal: true
module DiffViewer
module ClientSide
extend ActiveSupport::Concern
Loading
Loading
# frozen_string_literal: true
module DiffViewer
class Deleted < Base
include Simple
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