lib/sn_foil/contexts/create_context.rb in snfoil-0.8.2 vs lib/sn_foil/contexts/create_context.rb in snfoil-0.8.3

- old
+ new

@@ -115,10 +115,10 @@ # This method is private to help protect the order of execution of hooks def create_hooks(options) options = before_create_save(**options) save_successful = options[:object].save - options.merge!(object: unwrap_object(options[:object])) + options[:object] = unwrap_object(options[:object]) options = if save_successful after_create_save_success(**options) else after_create_save_failure(**options) end