Test mass actions in admin

This commit is contained in:
Karl Erik Õunapuu 2020-11-05 14:16:37 +02:00
parent d80007d83c
commit 1a0becf785
No known key found for this signature in database
GPG key ID: C9DD647298A34764
7 changed files with 40 additions and 9 deletions

View file

@ -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