mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Clean up after caching
This commit is contained in:
parent
6033c475c2
commit
d279643496
1 changed files with 3 additions and 4 deletions
|
@ -43,10 +43,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 :policy_scope
|
||||
hide_action :policies
|
||||
hide_action :policy_scopes
|
||||
hide_action :authorize
|
||||
hide_action :verify_authorized
|
||||
hide_action :verify_policy_scoped
|
||||
|
@ -81,7 +81,6 @@ module Pundit
|
|||
@_policy_scoped = true
|
||||
policy_scopes[scope] ||= Pundit.policy_scope!(pundit_user, scope)
|
||||
end
|
||||
attr_writer :policy_scope
|
||||
|
||||
def policy(record)
|
||||
policies[record] ||= Pundit.policy!(pundit_user, record)
|
||||
|
|
Loading…
Reference in a new issue