Skip to content

Commit

Permalink
chore: add endgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
furkanural committed Oct 22, 2024
1 parent 9515c99 commit a80c98b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pundit/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -235,5 +237,7 @@ def pundit_reset!
@_pundit_policy_authorized = nil
@_pundit_policy_scoped = nil
end

# @!endgroup
end
end

0 comments on commit a80c98b

Please sign in to comment.