lib/translated_attributes.rb in translated_attributes-0.5.1 vs lib/translated_attributes.rb in translated_attributes-0.5.2
- old
+ new
@@ -123,10 +123,10 @@
private
def merge_db_translations_with_instance_variable
return if new_record? or @db_translations_merged
@db_translations_merged = true
- translations.all.each do |t|
+ translations.each do |t|
translated_attributes_for(t.language)[t.attribute] = t.text
end
end
def parse_translated_attribute_method(name)
\ No newline at end of file