Skip to content
Browse files

use web_root in path instead of rails_root

There are still merb users out there
  • Loading branch information...
1 parent be3be3c commit 80b67e543a525dadb6a2421f1b96217aad94277a @johnny committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dm-paperclip/attachment.rb
View
2 lib/dm-paperclip/attachment.rb
@@ -7,7 +7,7 @@ class Attachment
def self.default_options
@default_options ||= {
:url => "/system/:attachment/:id/:style/:filename",
- :path => ":rails_root/public:url",
+ :path => ":web_root/public:url",
:styles => {},
:default_url => "/:attachment/:style/missing.png",
:default_style => :original,

0 comments on commit 80b67e5

Please sign in to comment.
Something went wrong with that request. Please try again.