mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
hide unused actions
This commit is contained in:
parent
5fae42f36f
commit
8c89f1391d
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ module Pundit
|
|||
helper_method :pundit_user
|
||||
end
|
||||
if respond_to?(:hide_action)
|
||||
hide_action :policy_scope
|
||||
hide_action :policy_scope=
|
||||
hide_action :policy
|
||||
hide_action :policy=
|
||||
hide_action :authorize
|
||||
hide_action :verify_authorized
|
||||
hide_action :verify_policy_scoped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue