Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configurable "User" models #1

Open
wireframe opened this issue Jan 20, 2015 · 1 comment
Open

Support configurable "User" models #1

wireframe opened this issue Jan 20, 2015 · 1 comment

Comments

@wireframe
Copy link
Contributor

Devise allows for any model to be used as the authenticatable resource. Instead of hardcoding references to the User model, allow for configuration or inspect the devise config directly to infer the model to be used.

see:

  • Devise.mappings
  • Devise.authentication_keys
@hazah
Copy link

hazah commented Oct 2, 2015

I think that would work best in the way the routes work with devise. You need a constraint to set the scope around the routes, which will allow you to access the scope mapping in the controllers through that parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants