lib/carrierwave/compatibility/paperclip.rb in carrierwave-0.3.5.2 vs lib/carrierwave/compatibility/paperclip.rb in carrierwave-0.4.0
- old
+ new
@@ -76,11 +76,11 @@
end
end
def mappings
{
- :rails_root => lambda{|u, f| CarrierWave.config[:root] },
- :rails_env => lambda{|u, f| CarrierWave.config[:env] },
+ :rails_root => lambda{|u, f| Rails.root },
+ :rails_env => lambda{|u, f| Rails.env },
:class => lambda{|u, f| u.model.class.name.underscore.pluralize},
:id => lambda{|u, f| u.model.id },
:id_partition => lambda{|u, f| ("%09d" % u.model.id).scan(/\d{3}/).join("/")},
:attachment => lambda{|u, f| u.mounted_as.to_s.downcase.pluralize },
:style => lambda{|u, f| u.paperclip_style },
\ No newline at end of file