Pretty much what I have mentioned in the title. I am using CanCan::Ability in my code to check permissions and abilities. It expects a current_user method to be defined. I am guessing it comes from devise (but not sure), and I wish to override it. Whats the best way to do that?
Share
It’s found here in the source code. It’s nothing to do with devise, though. The documentation is found above the method and describes overwriting it.