Method: Admin::RolesController#destroy
- Defined in:
- app/controllers/c/admin/roles_controller.rb
#destroy ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'app/controllers/c/admin/roles_controller.rb', line 32 def destroy if @role.destroy flash[:success] = 'Role deleted.' else flash[:error] = 'An error occurred.' end redirect_to roles_path end |