I use devise for authentication. How can I set the login area? For example, let's say I only want to authenticate the user for the realm:
User.where(:active => true)
I got it? It is simple, but if necessary I can develop more.
(I understand that there is a blockable module, but my real area is not for active users, it is more like current_site.users, where current_site is based on a domain)
source
share