lib/sn_foil/controller/api.rb in snfoil-rails-0.8.2 vs lib/sn_foil/controller/api.rb in snfoil-rails-0.8.3
- old
+ new
@@ -29,14 +29,16 @@
def setup_options(**options)
inject_deserialized_params(super)
end
def setup_create(**options)
- super(**options.merge(deserialize: true))
+ options[:deserialize] = options[:deserialize].nil? ? true : options[:deserialize]
+ super(**options)
end
def setup_update(**options)
- super(**options.merge(deserialize: true))
+ options[:deserialize] = options[:deserialize].nil? ? true : options[:deserialize]
+ super(**options)
end
def render_change(model, **options)
if model.errors.empty?
params