Class: Spree::Admin::RoleUsersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/admin/role_users_controller.rb

Instance Method Summary collapse

Methods included from BreadcrumbConcern

#add_breadcrumb_icon_instance_var

Instance Method Details

#destroyObject

DELETE /admin/store/role_users/:id



8
9
10
11
12
13
# File 'app/controllers/spree/admin/role_users_controller.rb', line 8

def destroy
  authorize! :destroy, @role_user

  @role_user.destroy
  redirect_back fallback_location: spree.admin_admin_users_path, status: :see_other, notice: flash_message_for(@role_user, :successfully_removed)
end