Commit c75cb763 by Mark Van Holstyn

Fixed interpolation of class name: SomeClass should be some_class, not someclass

parent c653447e
...@@ -149,7 +149,7 @@ module Paperclip ...@@ -149,7 +149,7 @@ module Paperclip
@interpolations ||= { @interpolations ||= {
:rails_root => lambda{|attachment,style| RAILS_ROOT }, :rails_root => lambda{|attachment,style| RAILS_ROOT },
:class => lambda do |attachment,style| :class => lambda do |attachment,style|
attachment.instance.class.to_s.downcase.pluralize attachment.instance.class.name.underscore.pluralize
end, end,
:basename => lambda do |attachment,style| :basename => lambda do |attachment,style|
attachment.original_filename.gsub(/\.(.*?)$/, "") attachment.original_filename.gsub(/\.(.*?)$/, "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment