Skip to content

Commit

Permalink
[Global] Add frozen_string_literal and remove require on necessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mth0158 committed Nov 12, 2024
1 parent cd2a20e commit 0d68fed
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 6 deletions.
2 changes: 2 additions & 0 deletions lib/active_storage_validations/marcel_extensor.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Marcel::MimeType.extend "application/x-rar-compressed", parents: %(application/x-rar)
Marcel::MimeType.extend "audio/x-hx-aac-adts", parents: %(audio/x-aac)
Marcel::MimeType.extend "audio/x-m4a", parents: %(audio/mp4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require "active_support/concern"
# frozen_string_literal: true

require 'active_support/concern'

module ActiveStorageValidations
module Matchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require "active_support/concern"
# frozen_string_literal: true

require 'active_support/concern'

module ActiveStorageValidations
module Matchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# frozen_string_literal: true

require 'active_support/concern'

module ActiveStorageValidations
module Matchers
module ASVAttachable
extend ActiveSupport::Concern

private

def attach_file(file = dummy_file)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require "active_support/concern"
# frozen_string_literal: true

require 'active_support/concern'

module ActiveStorageValidations
module Matchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require "active_support/concern"
# frozen_string_literal: true

require 'active_support/concern'

module ActiveStorageValidations
module Matchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require "active_support/concern"
# frozen_string_literal: true

require 'active_support/concern'

module ActiveStorageValidations
module Matchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require "active_support/concern"
# frozen_string_literal: true

require 'active_support/concern'

module ActiveStorageValidations
module Matchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveStorageValidations
# ActiveStorageValidations::ASVActiveStorageable
#
Expand Down
2 changes: 2 additions & 0 deletions lib/active_storage_validations/shared/asv_attachable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../metadata"

module ActiveStorageValidations
Expand Down
2 changes: 2 additions & 0 deletions lib/active_storage_validations/shared/asv_errorable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveStorageValidations
module ASVErrorable
extend ActiveSupport::Concern
Expand Down
2 changes: 2 additions & 0 deletions lib/active_storage_validations/shared/asv_loggable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveStorageValidations
module ASVLoggable
extend ActiveSupport::Concern
Expand Down
2 changes: 2 additions & 0 deletions lib/active_storage_validations/shared/asv_optionable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveStorageValidations
# ActiveStorageValidations::ASVOptionable
#
Expand Down
2 changes: 2 additions & 0 deletions lib/active_storage_validations/shared/asv_symbolizable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveStorageValidations
module ASVSymbolizable
extend ActiveSupport::Concern
Expand Down

0 comments on commit 0d68fed

Please sign in to comment.