lib/locomotive/steam/models/i18n_field.rb in locomotivecms_steam-1.6.0.beta1 vs lib/locomotive/steam/models/i18n_field.rb in locomotivecms_steam-1.6.0.rc1

- old
+ new

@@ -63,11 +63,11 @@ alias :__translations__ :translations alias :to_hash :translations - def serialize(attributes) - attributes[@name] = @translations + def serialize(attributes, custom_name = nil) + attributes[custom_name || @name] = @translations end def to_json to_hash.to_json end