Skip to content

Commit

Permalink
Improved deprecation warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 9, 2024
1 parent 825f282 commit 40605fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ahoy_email/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Engine < ::Rails::Engine
creds =
if app.respond_to?(:credentials) && app.credentials.secret_key_base
app.credentials
elsif app.respond_to?(:secrets) && app.config.paths["config/secrets"].existent.any?
elsif app.respond_to?(:secrets) && (Rails::VERSION::STRING.to_f < 7.1 || app.config.paths["config/secrets"].existent.any?)
app.secrets
else
app.config
Expand Down

0 comments on commit 40605fd

Please sign in to comment.