1
0
Fork 0
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:
Igor Kapkov 2014-03-09 23:01:53 +04:00
parent 5fae42f36f
commit 8c89f1391d

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