lib/translated_attributes.rb in translated_attributes-0.5.3 vs lib/translated_attributes.rb in translated_attributes-0.5.4

- old
+ new

@@ -72,10 +72,12 @@ text end end def set_translated_attribute(locale, field, value) - return if translated_attributes_for(locale)[field] == value + old_value = translated_attributes_for(locale)[field] + return if old_value == value + changed_attributes.merge!("#{field}_in_#{locale}" => old_value) translated_attributes_for(locale)[field] = value @translated_attributes_changed = true end def translated_attributes