From 835e27289a8a3e7006856fc3177a286652cda9d6 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Hirano Date: Fri, 22 Dec 2017 05:28:23 +0900 Subject: Pass options to rails_blob_url --- activestorage/config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage') diff --git a/activestorage/config/routes.rb b/activestorage/config/routes.rb index ad9640ce03..3f4129d915 100644 --- a/activestorage/config/routes.rb +++ b/activestorage/config/routes.rb @@ -7,7 +7,7 @@ Rails.application.routes.draw do route_for(:rails_service_blob, blob.signed_id, blob.filename, options) end - resolve("ActiveStorage::Blob") { |blob, options| route_for(:rails_blob, blob) } + resolve("ActiveStorage::Blob") { |blob, options| route_for(:rails_blob, blob, options) } resolve("ActiveStorage::Attachment") { |attachment, options| route_for(:rails_blob, attachment.blob, options) } -- cgit v1.2.3