Skip to content

Solution for differente Devise models? #2

@javifr

Description

@javifr

Hi!
Thanks a lot for sharing your approach to this problem, after one day googling is the closest solution to my problem so far.
The question is, what if you should allow login to different Devise models?
I have on my app several models under Devise ( Admin, Customer, User ), and i would like to allow them to login through the API, how would you modify your app for this?

  • Adding to routes some more devise_for directives?
  • Also, adding again the 3 api controllers for every model?
  • Keeping the three controllers but adding some logic?

Thanks in advance!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions