lib/ripple/attribute_methods/dirty.rb in ripple-0.8.2 vs lib/ripple/attribute_methods/dirty.rb in ripple-0.8.3
- old
+ new
@@ -40,10 +40,10 @@
changed_attributes.clear
end
private
def attribute=(attr_name, value)
- attribute_will_change!(attr_name)
+ attribute_will_change!(attr_name) if @attributes[attr_name] != value
super
end
end
end
end