lib/carrierwave/orm/activerecord.rb in jnicklas-carrierwave-0.1 vs lib/carrierwave/orm/activerecord.rb in jnicklas-carrierwave-0.1.1
- old
+ new
@@ -3,10 +3,12 @@
module CarrierWave
module ActiveRecord
include CarrierWave::Mount
- def after_mount(column, uploader)
+ def mount_uploader(column, uploader)
+ super
+
alias_method :read_uploader, :read_attribute
alias_method :write_uploader, :write_attribute
before_save do |record|
record.send("store_#{column}!")
\ No newline at end of file