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

Fix generator to correctly inject content into the user model in rails 5 #636

Merged
merged 1 commit into from
May 17, 2016

Conversation

ethangk
Copy link
Contributor

@ethangk ethangk commented May 17, 2016

I ran rails g model user in a fresh rails 5 api project, then the install command. Below is the resulting contents of the user model

class User < ApplicationRecord
  # Include default devise modules.
  devise :database_authenticatable, :registerable,
          :recoverable, :rememberable, :trackable, :validatable,
          :confirmable, :omniauthable
  include DeviseTokenAuth::Concerns::User
end

@ethangk
Copy link
Contributor Author

ethangk commented May 17, 2016

This is to fix #627

@ethangk ethangk changed the title Added check for rails 5 Fix generator to correctly inject content into the user model in rails 5 May 17, 2016
@booleanbetrayal
Copy link
Collaborator

thanks for this @ethangk !

@booleanbetrayal booleanbetrayal merged commit fda498c into lynndylanhurley:master May 17, 2016
@ethangk
Copy link
Contributor Author

ethangk commented May 17, 2016

My pleasure!

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

Successfully merging this pull request may close these issues.

2 participants