aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/engine.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-08-05 09:06:32 -0500
committerGitHub <noreply@github.com>2017-08-05 09:06:32 -0500
commitea5c99dce1e23b0f8211583d6cb7846d9e303971 (patch)
treeb1686aa93cd83f7b1186b3ee32dfa692c05ad531 /activestorage/lib/active_storage/engine.rb
parent44da50df17a6aad9ba03ee27db3de8fdc054fd26 (diff)
parent1ab1f8759607cae037522717594c02b6c7a7b168 (diff)
downloadrails-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/lib/active_storage/engine.rb')
-rw-r--r--activestorage/lib/active_storage/engine.rb2
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