Skip to content

Instantly share code, notes, and snippets.

@bhoggard
Created April 28, 2009 02:13
Show Gist options
  • Save bhoggard/102886 to your computer and use it in GitHub Desktop.
Save bhoggard/102886 to your computer and use it in GitHub Desktop.
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