lib/ahoy_email/engine.rb in ahoy_email-2.3.0 vs lib/ahoy_email/engine.rb in ahoy_email-2.3.1
- old
+ new
@@ -9,10 +9,10 @@
# TODO remove in 3.0
creds =
if app.respond_to?(:credentials) && app.credentials.secret_key_base
app.credentials
- elsif app.respond_to?(:secrets)
+ elsif app.respond_to?(:secrets) && (Rails::VERSION::STRING.to_f < 7.1 || app.config.paths["config/secrets"].existent.any?)
app.secrets
else
app.config
end