mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Test mass actions in admin
This commit is contained in:
parent
d80007d83c
commit
1a0becf785
7 changed files with 40 additions and 9 deletions
|
@ -2,10 +2,11 @@
|
|||
|
||||
module Admin
|
||||
class MassActionsController < BaseController
|
||||
authorize_resource
|
||||
before_action :authorize_admin
|
||||
|
||||
# GET /admin/mass_actions
|
||||
def index; end
|
||||
def index
|
||||
end
|
||||
|
||||
# POST /admin/mass_actions
|
||||
def create
|
||||
|
@ -19,5 +20,9 @@ module Admin
|
|||
|
||||
redirect_to(admin_mass_actions_path, notice: notice)
|
||||
end
|
||||
|
||||
def authorize_admin
|
||||
authorize! :manage, :mass_actions
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue