From a80c98b170fd07decdc637aec5fb6b68ccc9cc49 Mon Sep 17 00:00:00 2001 From: Furkan Ural Date: Tue, 22 Oct 2024 16:53:14 +0300 Subject: [PATCH] chore: add endgroup --- lib/pundit/authorization.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pundit/authorization.rb b/lib/pundit/authorization.rb index cf2a2ae..93a6240 100644 --- a/lib/pundit/authorization.rb +++ b/lib/pundit/authorization.rb @@ -218,6 +218,8 @@ def pundit_params_for(record) # @!endgroup + # @!group Customize Pundit user + # Clears the cached Pundit authorization data. # # This method should be called when the pundit_user is changed, @@ -235,5 +237,7 @@ def pundit_reset! @_pundit_policy_authorized = nil @_pundit_policy_scoped = nil end + + # @!endgroup end end