lib/carrierwave/orm/mongoid.rb in locomotive_carrierwave-0.5.4.beta2 vs lib/carrierwave/orm/mongoid.rb in locomotive_carrierwave-0.5.4.beta3

- old
+ new

@@ -37,12 +37,14 @@ begin value = __send__(column) value = value.duplicable? ? value.clone : value rescue TypeError, NoMethodError end - @modifications[column] = value + setup_modifications - super + super.tap do + @modifications[column] = [value, __send__(column)] + end end def #{column}_changed? column = _mounter(:#{column}).serialization_column send(:"\#{column}_changed?")