I have some code that calls
current_user.is_admin?
The code works fine, but I can't figure out where the is_admin?
method is defined. I'm using Devise, CanCan, and role_model, but the method isn't in any of these projects' source code, or in mine...
I also tried finding the owner of the method by doing this in the Rails console:
current_user.method(:is_admin?).owner
=> #<Module:0x00000105253c98>
But that's not much help...