Created
April 28, 2009 02:13
-
-
Save bhoggard/102886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vendor/plugins/paperclip/lib/paperclip/storage.rb b/vendor/plugins/paperclip/lib/paperclip/storage.rb | |
index 396962b..cb048e5 100644 | |
--- a/vendor/plugins/paperclip/lib/paperclip/storage.rb | |
+++ b/vendor/plugins/paperclip/lib/paperclip/storage.rb | |
@@ -276,7 +276,7 @@ module Paperclip | |
@path = Paperclip::Attachment.default_options[:path] == @options[:path] ? ":attachment/:id/:style/:basename.:extension" : @option | |
end | |
base.class.interpolations[:cf_path_url] = lambda do |attachment, style| | |
- attachment.cloudfiles_container.object(attachment.path).public_url | |
+ attachment.cloudfiles_container.object(attachment.path(style)).public_url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment