diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-23 15:51:01 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-23 15:51:01 -0500 |
commit | 15efa6720f9dc6efe27c717d9e32b31b2d45b7b8 (patch) | |
tree | 67734bd047423aa59dbfb61d2da27e348360ab67 /app/controllers/active_storage | |
parent | 5889560427e56cb40861c0d57582857386f7e8fd (diff) | |
download | rails-15efa6720f9dc6efe27c717d9e32b31b2d45b7b8.tar.gz rails-15efa6720f9dc6efe27c717d9e32b31b2d45b7b8.tar.bz2 rails-15efa6720f9dc6efe27c717d9e32b31b2d45b7b8.zip |
Specify verification purposes
Diffstat (limited to 'app/controllers/active_storage')
-rw-r--r-- | app/controllers/active_storage/disk_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/active_storage/disk_controller.rb b/app/controllers/active_storage/disk_controller.rb index 7269239216..a42b4833a7 100644 --- a/app/controllers/active_storage/disk_controller.rb +++ b/app/controllers/active_storage/disk_controller.rb @@ -24,7 +24,7 @@ class ActiveStorage::DiskController < ActionController::Base end def decode_verified_key - ActiveStorage.verifier.verified(params[:encoded_key]) + ActiveStorage.verifier.verified(params[:encoded_key], purpose: :blob_key) end def disposition_param |