lib/sn_foil/contexts/destroy_context.rb
# This method is private to help protect the order of execution of hooks
This method is private to help protect the order of execution of hooks
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[:object] = unwrap_object(options[:object])
        options = if destroy_successful
                    after_destroy_save_success(options)
                  else
                    after_destroy_save_failure(options)
                  end
        after_destroy_save(options)
      end
def destroy_hooks ( options ) options = before_destroy_save ( options ) destroy_successful = options [ :object ] . destroy options [ :object ] = unwrap_object ( options [ :object ] ) options = if destroy_successful after_destroy_save_success ( options ) else after_destroy_save_failure ( options ) end after_destroy_save ( options ) end
This method is private to help protect the order of execution of hooks
This method is private to help protect the order of execution of hooks
options
<not_specific>