aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/controllers
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2017-08-15 21:57:27 +0200
committerXavier Noria <fxn@hashref.com>2017-08-15 22:01:24 +0200
commitd8bf5d73c39ff6758b3a86a58b1b096006f4bb42 (patch)
treea825566b297d6cc4420e745fece2a0686dd7962b /activestorage/app/controllers
parent979277dc0349e3674daa21b691478ea7e05f3519 (diff)
downloadrails-d8bf5d73c39ff6758b3a86a58b1b096006f4bb42.tar.gz
rails-d8bf5d73c39ff6758b3a86a58b1b096006f4bb42.tar.bz2
rails-d8bf5d73c39ff6758b3a86a58b1b096006f4bb42.zip
restores some double newlines deleted in ae87217
These were intentional, see https://github.com/rails/rails/pull/30061#issuecomment-320068368
Diffstat (limited to 'activestorage/app/controllers')
-rw-r--r--activestorage/app/controllers/active_storage/disk_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activestorage/app/controllers/active_storage/disk_controller.rb b/activestorage/app/controllers/active_storage/disk_controller.rb
index dee88054da..b10d4e2cac 100644
--- a/activestorage/app/controllers/active_storage/disk_controller.rb
+++ b/activestorage/app/controllers/active_storage/disk_controller.rb
@@ -33,6 +33,7 @@ class ActiveStorage::DiskController < ActionController::Base
ActiveStorage::Blob.service
end
+
def decode_verified_key
ActiveStorage.verifier.verified(params[:encoded_key], purpose: :blob_key)
end
@@ -41,6 +42,7 @@ class ActiveStorage::DiskController < ActionController::Base
params[:disposition].presence_in(%w( inline attachment )) || "inline"
end
+
def decode_verified_token
ActiveStorage.verifier.verified(params[:encoded_token], purpose: :blob_token)
end