diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-08-05 09:06:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 09:06:32 -0500 |
commit | ea5c99dce1e23b0f8211583d6cb7846d9e303971 (patch) | |
tree | b1686aa93cd83f7b1186b3ee32dfa692c05ad531 /activestorage | |
parent | 44da50df17a6aad9ba03ee27db3de8fdc054fd26 (diff) | |
parent | 1ab1f8759607cae037522717594c02b6c7a7b168 (diff) | |
download | rails-ea5c99dce1e23b0f8211583d6cb7846d9e303971.tar.gz rails-ea5c99dce1e23b0f8211583d6cb7846d9e303971.tar.bz2 rails-ea5c99dce1e23b0f8211583d6cb7846d9e303971.zip |
Merge pull request #30080 from georgeclaghorn/active-storage-secret-key-base
Active Storage: check for `app.secrets.secret_key_base`, not `app.config.secret_key_base`
Diffstat (limited to 'activestorage')
-rw-r--r-- | activestorage/lib/active_storage/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/engine.rb b/activestorage/lib/active_storage/engine.rb index 1d345920fa..da83d3908a 100644 --- a/activestorage/lib/active_storage/engine.rb +++ b/activestorage/lib/active_storage/engine.rb @@ -27,7 +27,7 @@ module ActiveStorage initializer "active_storage.verifier" do config.after_initialize do |app| - if app.config.secret_key_base.present? + if app.secrets.secret_key_base.present? ActiveStorage.verifier = app.message_verifier("ActiveStorage") end end |