lib/locomotive/steam/models/i18n_field.rb in locomotivecms_steam-1.0.0.pre.alpha.3 vs lib/locomotive/steam/models/i18n_field.rb in locomotivecms_steam-1.0.0.pre.beta.1

- old
+ new

@@ -34,9 +34,13 @@ @translations.each(&block) end alias :__translations__ :translations + def serialize(attributes) + attributes[@name] = @translations + end + end end end