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

Using the Generator Without Capitalizing Model Name #912

Closed
moeabdol opened this issue Jun 21, 2017 · 2 comments
Closed

Using the Generator Without Capitalizing Model Name #912

moeabdol opened this issue Jun 21, 2017 · 2 comments

Comments

@moeabdol
Copy link

moeabdol commented Jun 21, 2017

When using the generator to generate a user model such as:

rails generate devise_token_auth:install user auth

The user model calss in app/models/user.rb is created such as:

class user < ActiveRecord::Base

Also when modifying this manually I get other weird behavior when trying to rails db:migrate
I think it's better to make devise_auth_token handle this automatically just like other generators in rails. This would result in a seamless experience. Thanks.

@moeabdol moeabdol changed the title Using the Using the Generator Without Capitalizing Model Name Jun 21, 2017
@zachfeldman
Copy link
Contributor

@moeabdol I agree. How would you feel about submitting a pull request to take care of this? Going to tag this close-in-7-days in case you've moved on but we'd be game!

@MaicolBen
Copy link
Collaborator

MaicolBen commented Oct 13, 2017

Removing label, this seems a probable issue. A PR is appreciated!

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

No branches or pull requests

3 participants