1
0
Fork 0
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:
Alexandra Ackerman 2016-09-08 12:23:14 -04:00
parent c3f2d09a0e
commit 57742d5a0e

View file

@ -148,7 +148,7 @@ protected
# `after_action` filter to prevent programmer error in forgetting to call
# {#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
# @return [void]
def verify_authorized
@ -159,7 +159,7 @@ protected
# `after_action` filter to prevent programmer error in forgetting to call
# {#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
# @return [void]
def verify_policy_scoped
@ -191,7 +191,7 @@ protected
# 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]
def skip_authorization
@_pundit_policy_authorized = true
@ -199,7 +199,7 @@ protected
# 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]
def skip_policy_scope
@_pundit_policy_scoped = true