-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 namespace #1117
Support namespace #1117
Conversation
Generator and template were refactored to support namespaced models.
@kaevee ok, but can you add a test for this? Thanks! |
Sure. I will. Thanks! |
To keep things simple, I have created a separate test for user models with namespace. |
Very awesome @kaevee ! Going to just re-run the tests to be sure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More tests than I expected!
Thanks. Lack of namespace support has been bugging me since late 2016. I wonder why I did not take this up all these days. |
The current generator did not support namespace models. The patch fixes following issues
rails g devise_token_auth:install Sprint::V1::Auth::User auth
create config/initializers/devise_token_auth.rb
**create db/migrate/devise_token_auth_create_sprint/v1/auth/20180322050951_users.rb**
create app/models/sprint/v1/auth/user.rb
insert app/controllers/application_controller.rb
gsub config/routes.rb
snipped