Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Pundit.authorize when passing a custom cache #838

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

Burgestrand
Copy link
Member

We accidentally broke this interface when the internal cache interface changed a while back.

To do

  • I have read the contributing guidelines.
  • I have added relevant tests.
  • I have adjusted relevant documentation.
  • I have made sure the individual commits are meaningful.
  • I have added relevant lines to the CHANGELOG.

PS: Thank you for contributing to Pundit ❤️

@Burgestrand Burgestrand force-pushed the kbs/fix-pundit-authorize-cache-parameter branch 3 times, most recently from 9bfbe4c to 474b0b6 Compare October 11, 2024 07:41
@Burgestrand Burgestrand force-pushed the kbs/code-janitoring branch 2 times, most recently from ba324e4 to e296e83 Compare October 11, 2024 07:57
@Burgestrand Burgestrand force-pushed the kbs/fix-pundit-authorize-cache-parameter branch 2 times, most recently from 7eb7a46 to c620716 Compare October 11, 2024 08:11
@Burgestrand Burgestrand self-assigned this Oct 11, 2024
Base automatically changed from kbs/code-janitoring to main October 11, 2024 08:42
@Burgestrand Burgestrand marked this pull request as ready for review October 11, 2024 08:43
We accidentally broke this interface when the internal cache interface changed in aedc862.

According to documentation, and how it worked in the past, it should accept a Hash-like interface.
@Burgestrand Burgestrand force-pushed the kbs/fix-pundit-authorize-cache-parameter branch from c620716 to 07c0d93 Compare November 21, 2024 10:47
@Burgestrand Burgestrand merged commit 82f635c into main Nov 21, 2024
13 of 14 checks passed
@Burgestrand Burgestrand deleted the kbs/fix-pundit-authorize-cache-parameter branch November 21, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant