Skip to content

Commit

Permalink
Fixed deprecation warning with Rails 7.1 - fixes #164
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 9, 2024
1 parent 7a55256 commit 825f282
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.3.1 (unreleased)

- Fixed deprecation warning with Rails 7.1

## 2.3.0 (2024-06-01)

- Added support for secret token rotation
Expand Down
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)
elsif app.respond_to?(:secrets) && app.config.paths["config/secrets"].existent.any?
app.secrets
else
app.config
Expand Down

0 comments on commit 825f282

Please sign in to comment.