Skip to content

Leverage accessible_by from can? when possible#813

Open
oboxodo wants to merge 1 commit into
CanCanCommunity:developfrom
oboxodo:optimize_ability_check_when_possible
Open

Leverage accessible_by from can? when possible#813
oboxodo wants to merge 1 commit into
CanCanCommunity:developfrom
oboxodo:optimize_ability_check_when_possible

Conversation

@oboxodo
Copy link
Copy Markdown

@oboxodo oboxodo commented Jan 23, 2023

This is an attempt at solving #812.

I'm not familiar with the internals of CanCanCan, so I'm hoping someone more involved improves this or at least guides me.

I ran all tests on Rails 7 and SQLite like this and they all pass:

DB='sqlite' bundle exec appraisal activerecord_7.0.0 rake

@oboxodo
Copy link
Copy Markdown
Author

oboxodo commented Jan 23, 2023

@coorasse do you think you can approve running the full tests on this PR?

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