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

pundit_user should be a helper and hidden as an action

This commit is contained in:
Philip Vieira 2013-07-14 00:50:39 +02:00
parent a847f782cd
commit 149a02c7b8

View file

@ -34,11 +34,13 @@ module Pundit
if respond_to?(:helper_method)
helper_method :policy_scope
helper_method :policy
helper_method :pundit_user
end
if respond_to?(:hide_action)
hide_action :authorize
hide_action :verify_authorized
hide_action :verify_policy_scoped
hide_action :pundit_user
end
end