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:
parent
a847f782cd
commit
149a02c7b8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue