lib/sn_foil/contexts/update_context.rb in snfoil-0.8.3 vs lib/sn_foil/contexts/update_context.rb in snfoil-0.8.4
- old
+ new
@@ -58,10 +58,11 @@
object = wrap_object(object || scope.resolve.find(id))
authorize(object, options.fetch(:authorize, :update?), **options)
object.attributes = params
- options.merge! object: object
+ options[:object] = object
+ options
end
def update(**options)
options[:action] = :update
options = before_setup_update_object(**options)