lib/active_model/dirty.rb in activemodel-3.0.0.beta3 vs lib/active_model/dirty.rb in activemodel-3.0.0.beta4

- old
+ new

@@ -122,14 +122,15 @@ # person.previous_changes # => {'name' => ['bob, 'robert']} def previous_changes @previously_changed end + # Map of change <tt>attr => original value</tt>. + def changed_attributes + @changed_attributes ||= {} + end + private - # Map of change <tt>attr => original value</tt>. - def changed_attributes - @changed_attributes ||= {} - end # Handle <tt>*_changed?</tt> for +method_missing+. def attribute_changed?(attr) changed_attributes.include?(attr) end