Created
July 15, 2010 08:08
-
-
Save andyjeffries/476652 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/lib/paperclip.rb b/lib/paperclip.rb | |
index f40fe79..c043970 100644 | |
--- a/lib/paperclip.rb | |
+++ b/lib/paperclip.rb | |
@@ -171,7 +171,7 @@ module Paperclip | |
# that can control permissions. You can specify the full domain and path, but usually | |
# just an absolute path is sufficient. The leading slash *must* be included manually for | |
# absolute paths. The default value is | |
- # "/system/:attachment/:id/:style/:filename". See | |
+ # "/system/:class/:attachment/:id/:style/:filename". See | |
# Paperclip::Attachment#interpolate for more information on variable interpolaton. | |
# :url => "/:class/:attachment/:id/:style_:filename" | |
# :url => "http://some.other.host/stuff/:class/:id_:extension" | |
diff --git a/lib/paperclip/attachment.rb b/lib/paperclip/attachment.rb | |
index 39f0ac1..a685340 100644 | |
--- a/lib/paperclip/attachment.rb | |
+++ b/lib/paperclip/attachment.rb | |
@@ -7,7 +7,7 @@ module Paperclip | |
def self.default_options | |
@default_options ||= { | |
- :url => "/system/:attachment/:id/:style/:filename", | |
+ :url => "/system/:class/:attachment/:id/:style/:filename", | |
:path => ":rails_root/public:url", | |
:styles => {}, | |
:processors => [:thumbnail], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment