lib/pupper/trackable_attributes.rb in pupper-0.1.10 vs lib/pupper/trackable_attributes.rb in pupper-0.1.11

- old
+ new

@@ -12,9 +12,13 @@ module InstanceMethods def attributes @attributes ||= {} end + def changed_attributes + changes.transform_values(&:last) + end + def reload! restore_attributes end def rollback!