Skip to content

Commit

Permalink
chore: Fix Rails 7.2 secrets deprecation warning
Browse files Browse the repository at this point in the history
DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor
of `Rails.application.credentials` and will be removed in Rails 7.2.
  • Loading branch information
kaylareopelle committed Dec 1, 2023
1 parent f6e540f commit 3849880
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion instrumentation/action_pack/example/trace_demonstration.ru
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require 'action_controller/railtie'
class TraceRequestApp < Rails::Application
config.root = __dir__
config.hosts << 'example.org'
secrets.secret_key_base = 'secret_key_base'
credentials.secret_key_base = 'secret_key_base'
config.eager_load = false
config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require 'action_view/railtie'
class TraceRequestApp < Rails::Application
config.root = __dir__
config.hosts << 'example.org'
secrets.secret_key_base = 'secret_key_base'
credentials.secret_key_base = 'secret_key_base'

config.eager_load = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require 'action_controller/railtie'
class TraceRequestApp < Rails::Application
config.root = __dir__
config.hosts << 'example.org'
secrets.secret_key_base = 'secret_key_base'
credentials.secret_key_base = 'secret_key_base'
config.eager_load = false
config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down

0 comments on commit 3849880

Please sign in to comment.