You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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:
The text was updated successfully, but these errors were encountered: