From 57742d5a0e02df2200644751a94abc0f37183b68 Mon Sep 17 00:00:00 2001 From: Alexandra Ackerman Date: Thu, 8 Sep 2016 12:23:14 -0400 Subject: [PATCH] Update links for ensuring policies and scopes are used in pundit.rb --- lib/pundit.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pundit.rb b/lib/pundit.rb index 559b8a6..8b719be 100644 --- a/lib/pundit.rb +++ b/lib/pundit.rb @@ -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