aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_file/blob.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_file/blob.rb')
-rw-r--r--lib/active_file/blob.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_file/blob.rb b/lib/active_file/blob.rb
index bf34aac794..8a1950c9dc 100644
--- a/lib/active_file/blob.rb
+++ b/lib/active_file/blob.rb
@@ -33,8 +33,8 @@ class ActiveFile::Blob < ActiveRecord::Base
ActiveFile::Filename.new(self[:filename])
end
- def url(expires_in: 5.minutes)
- site.url key, expires_in: expires_in
+ def url(expires_in: 5.minutes, disposition: :inline)
+ site.url key, expires_in: expires_in, disposition: disposition, filename: filename
end