ruby on rails - How do I tell Devise to use the User model in my scope ? -


i have begun looking devise gem little bit , have problem using correct model user class. there way can tell devise user model in module structure, i.e. can specify user model inside of module structure:

module1/module2/user 

instead of relying on being in default scope ?

sorry short question, if require else, please let me know.

when use class_name option in devise_for declaration, devise use class expect. documentation provides examples.

from documentation:

#  * class_name: setup different class looked devise, if cannot #    found route name. # #      devise_for :users, class_name: 'account' 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -