lib/translated_attributes.rb in translated_attributes-0.5.4 vs lib/translated_attributes.rb in translated_attributes-0.5.5
- old
+ new
@@ -73,10 +73,10 @@
end
end
def set_translated_attribute(locale, field, value)
old_value = translated_attributes_for(locale)[field]
- return if old_value == value
+ return if old_value.to_s == value.to_s
changed_attributes.merge!("#{field}_in_#{locale}" => old_value)
translated_attributes_for(locale)[field] = value
@translated_attributes_changed = true
end