Skip to content

Commit

Permalink
fix: Require active_support before use
Browse files Browse the repository at this point in the history
This has changed in later releases of ActiveSupport, see this Issue: rails/rails#43851
  • Loading branch information
olleolleolle committed Jan 11, 2022
1 parent f2ce77d commit 2cf2ef1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/lograge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
require 'lograge/log_subscribers/action_controller'
require 'lograge/silent_logger'
require 'lograge/ordered_options'
require 'active_support'
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/core_ext/string/inflections'

Expand Down
1 change: 1 addition & 0 deletions lib/lograge/log_subscribers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require 'json'
require 'action_pack'
require 'active_support'
require 'active_support/core_ext/class/attribute'
require 'active_support/log_subscriber'
require 'request_store'
Expand Down
2 changes: 1 addition & 1 deletion lib/lograge/ordered_options.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

require 'active_support'
require 'active_support/ordered_options'

module Lograge
Expand Down
1 change: 1 addition & 0 deletions lib/lograge/rails_ext/rack/logger.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require 'active_support'
require 'active_support/concern'
require 'rails/rack/logger'

Expand Down
1 change: 1 addition & 0 deletions spec/log_subscribers/action_cable_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'lograge/log_subscribers/action_controller'
require 'active_support'
require 'active_support/notifications'
require 'active_support/core_ext/string'
require 'logger'
Expand Down
1 change: 1 addition & 0 deletions spec/log_subscribers/action_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'lograge/log_subscribers/action_controller'
require 'active_support'
require 'active_support/notifications'
require 'active_support/core_ext/string'
require 'logger'
Expand Down
1 change: 1 addition & 0 deletions spec/lograge_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require 'active_support'
require 'active_support/notifications'
require 'active_support/core_ext/string'
require 'active_support/deprecation'
Expand Down

0 comments on commit 2cf2ef1

Please sign in to comment.