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

- old
+ new

@@ -78,10 +78,11 @@ translated_attributes_for(locale)[field] = value @translated_attributes_changed = true end def translated_attributes + return @translated_attributes if @translated_attributes merge_db_translations_with_instance_variable @translated_attributes ||= {}.with_indifferent_access end def translated_attributes= hash @@ -147,6 +148,6 @@ translated_attributes[locale] end end end -ActiveRecord::Base.send :extend, TranslatedAttributes::ClassMethods \ No newline at end of file +ActiveRecord::Base.send :extend, TranslatedAttributes::ClassMethods