1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Merge pull request #122 from igas/delete-actions

Hide unused actions
This commit is contained in:
Jonas Nicklas 2014-03-09 20:11:25 +01:00
commit 78750e6dcc

View file

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