lib/safe_attributes/base.rb in safe_attributes-1.0.9 vs lib/safe_attributes/base.rb in safe_attributes-1.0.10

- old
+ new

@@ -61,7 +61,11 @@ else self.send(attr.to_s) if (self.respond_to?(attr.to_sym)) end end + def attribute_change(attr) + [changed_attributes[attr], read_attribute_for_validation(attr)] if attribute_changed?(attr) + end + end end