Skip to content

Instantly share code, notes, and snippets.

@andyjeffries
Created July 15, 2010 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyjeffries/476652 to your computer and use it in GitHub Desktop.
Save andyjeffries/476652 to your computer and use it in GitHub Desktop.
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