What does resource mean in Devise?
Resource is an abstraction name of instance of a user. It can be configured in devise settings to work with Admin model or any other.
By default it's the first devise role declared in your routes
devise :users # resource is instance of User class
devise :admins # resource is instance of Admin class