def store_translated_attributes
return true unless @translated_attributes_changed
translations.delete_all
@translated_attributes.each do |locale, attributes|
attributes.each do |attribute, value|
next if value.blank?
next unless self.class.translated_attributes_options[:fields].include? attribute.to_sym
translations.create!(:attribute=>attribute, :text=>value, :language=>locale)
end
end
@translated_attributes_changed = false
true # <===== would fix it
end