aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/active_file/disk_controller.rb2
-rw-r--r--lib/active_file/railtie.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_file/disk_controller.rb b/lib/active_file/disk_controller.rb
index f016c90fc5..5140c91f0a 100644
--- a/lib/active_file/disk_controller.rb
+++ b/lib/active_file/disk_controller.rb
@@ -10,7 +10,7 @@ class ActiveFile::DiskController < ActionController::Base
private
def decode_verified_key
- ActiveFile::Site::DiskSite::VerifiedKeyWithExpiration.decode(params[:id])
+ ActiveFile::Site::DiskSite::VerifiedKeyWithExpiration.decode(params[:encoded_key])
end
def disposition_param
diff --git a/lib/active_file/railtie.rb b/lib/active_file/railtie.rb
index 4398bb6072..6a22148040 100644
--- a/lib/active_file/railtie.rb
+++ b/lib/active_file/railtie.rb
@@ -11,7 +11,7 @@ module ActiveFile
config.after_initialize do |app|
app.routes.prepend do
- get "/rails/blobs/:id" => "active_file/disk#show", as: :rails_disk_blob
+ get "/rails/blobs/:encoded_key" => "active_file/disk#show", as: :rails_disk_blob
end
end
end