You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
The can? method is currently one of the most complex methods in CanCan. It could use some refactoring! Splitting it up into some private methods would probably be best.
Alternatively I could create a separate AbilityCheck object which would reduce the amount of parameter passing across methods, but I'm concerned about performance since the can? method is triggered frequently in many applications.
I wonder if I can move some of the checking logic to up-front inside the can call. I'll have to look into that as well.
The text was updated successfully, but these errors were encountered:
The
can?
method is currently one of the most complex methods in CanCan. It could use some refactoring! Splitting it up into some private methods would probably be best.Alternatively I could create a separate AbilityCheck object which would reduce the amount of parameter passing across methods, but I'm concerned about performance since the
can?
method is triggered frequently in many applications.I wonder if I can move some of the checking logic to up-front inside the
can
call. I'll have to look into that as well.The text was updated successfully, but these errors were encountered: