mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Update links for ensuring policies and scopes are used in pundit.rb
This commit is contained in:
parent
c3f2d09a0e
commit
57742d5a0e
1 changed files with 4 additions and 4 deletions
|
@ -148,7 +148,7 @@ protected
|
||||||
# `after_action` filter to prevent programmer error in forgetting to call
|
# `after_action` filter to prevent programmer error in forgetting to call
|
||||||
# {#authorize} or {#skip_authorization}.
|
# {#authorize} or {#skip_authorization}.
|
||||||
#
|
#
|
||||||
# @see https://github.com/elabs/pundit#ensuring-policies-are-used
|
# @see https://github.com/elabs/pundit#ensuring-policies-and-scopes-are-used
|
||||||
# @raise [AuthorizationNotPerformedError] if authorization has not been performed
|
# @raise [AuthorizationNotPerformedError] if authorization has not been performed
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def verify_authorized
|
def verify_authorized
|
||||||
|
@ -159,7 +159,7 @@ protected
|
||||||
# `after_action` filter to prevent programmer error in forgetting to call
|
# `after_action` filter to prevent programmer error in forgetting to call
|
||||||
# {#policy_scope} or {#skip_policy_scope} in index actions.
|
# {#policy_scope} or {#skip_policy_scope} in index actions.
|
||||||
#
|
#
|
||||||
# @see https://github.com/elabs/pundit#ensuring-policies-are-used
|
# @see https://github.com/elabs/pundit#ensuring-policies-and-scopes-are-used
|
||||||
# @raise [AuthorizationNotPerformedError] if policy scoping has not been performed
|
# @raise [AuthorizationNotPerformedError] if policy scoping has not been performed
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def verify_policy_scoped
|
def verify_policy_scoped
|
||||||
|
@ -191,7 +191,7 @@ protected
|
||||||
|
|
||||||
# Allow this action not to perform authorization.
|
# Allow this action not to perform authorization.
|
||||||
#
|
#
|
||||||
# @see https://github.com/elabs/pundit#ensuring-policies-are-used
|
# @see https://github.com/elabs/pundit#ensuring-policies-and-scopes-are-used
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def skip_authorization
|
def skip_authorization
|
||||||
@_pundit_policy_authorized = true
|
@_pundit_policy_authorized = true
|
||||||
|
@ -199,7 +199,7 @@ protected
|
||||||
|
|
||||||
# Allow this action not to perform policy scoping.
|
# Allow this action not to perform policy scoping.
|
||||||
#
|
#
|
||||||
# @see https://github.com/elabs/pundit#ensuring-policies-are-used
|
# @see https://github.com/elabs/pundit#ensuring-policies-and-scopes-are-used
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def skip_policy_scope
|
def skip_policy_scope
|
||||||
@_pundit_policy_scoped = true
|
@_pundit_policy_scoped = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue