1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Pass options to rails_blob_url

This commit is contained in:
Yoshiyuki Hirano 2017-12-22 05:28:23 +09:00
parent 3b4f14dc43
commit 835e27289a

View file

@ -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) }