Commit a255f26d by Jon Yurek

Make previous commit more generic

parent 9ae8455b
...@@ -128,7 +128,7 @@ module Paperclip ...@@ -128,7 +128,7 @@ module Paperclip
end end
def expiring_url(time = (Time.now + 3600), style = default_style) def expiring_url(time = (Time.now + 3600), style = default_style)
if fog_credentials[:provider] == 'AWS' if directory.files.respond_to?(:get_http_url)
expiring_url = directory.files.get_http_url(path(style), time) expiring_url = directory.files.get_http_url(path(style), time)
if @options[:fog_host] if @options[:fog_host]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment