I use Devise and CanCan for authorization in the interface of the Rails 3 application. I also have Active Admin as the interface for the backend. I am trying to create different roles for administrators in the backend. Both ends have an entry form that uses different "user" models and tables. The problem is that CanCan extracts the current user from the interface (captures the current user object) and uses it to make sure that someone from the backend has the correct permissions.
So, how can I CanCan correctly grab the registered admin user?
If someone needs more information, I will be happy to provide it.
Brady source share