lib/carrierwave/orm/activerecord.rb in jnicklas-carrierwave-0.2.3 vs lib/carrierwave/orm/activerecord.rb in jnicklas-carrierwave-0.2.4
- old
+ new
@@ -23,9 +23,13 @@
end
before_update do |record|
record.send("store_#{column}!")
end
+
+ after_destroy do |record|
+ record.send("remove_#{column}!")
+ end
end
##
# Makes the record invalid if the file couldn't be uploaded due to an integrity error
#