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

- old
+ new

@@ -121,10 +121,10 @@ # This method is private to help protect the order of execution of hooks def destroy_hooks(options) options = before_destroy_save(options) destroy_successful = options[:object].destroy - options.merge!(object: unwrap_object(options[:object])) + options[:object] = unwrap_object(options[:object]) options = if destroy_successful after_destroy_save_success(options) else after_destroy_save_failure(options) end