Commit d76ef9be by jyurek

url is the location for s3

git-svn-id: https://svn.thoughtbot.com/plugins/paperclip/trunk@248 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
parent a6e2418f
......@@ -30,9 +30,15 @@ module Paperclip
end
end
def url_with_s3 style = nil
http_host = definition.s3_host || "http://s3.amazonaws.com"
"#{http_host}/#{bucket}/#{url_without_s3(style)}"
end
alias_method_chain :url, :s3
def file_name style = nil
style ||= definition.default_style
interpolate( style, definition.path )
interpolate( style, definition.url )
end
def attachment_exists? style = nil
......
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