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(STI): compress rules per subjects #855

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

sjoulbak
Copy link

Hi 👋

This is a follow-up PR for the changes of: #843

I updated cancancan to its latest version earlier today and noticed that some of our authorization specs were failing. It was related with the latest changes of compressing duplicate rules in combination with STI subjects. I provided a spec to reproduce the issue and a solution as well, which will modify seen in lib/cancan/rules_compressor.rb to keep track of seen rules per given subjects. This solution works for our app.

As a chore I uppercased a changelog entry body to fix a spec.

I added a missing changelog entry for 3.6.1. Please note that 3.6.1 is already released at Rubygems, but there is no tag at this repo.

Let me know if I need to do anything else to get this PR merged 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant