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 048c2be
Show file tree
Hide file tree
Showing 14 changed files with 22 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,4 @@
require "active_support/concern"
# frozen_string_literal: true

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

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
module Matchers
module ASVAttachable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "active_support/concern"
# frozen_string_literal: true

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

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

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

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 048c2be

Please sign in to comment.