We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TestCase:
ng-token-auth
devise_token_auth_demo
User
Developer
routes.rb
mount_devise_token_auth_for 'Developer', at: '/auth'
Expected Result:
Should send out confirmation email successfully
Actual Result:
Got the following exception:
ameError (uninitialized constant DeviseTokenAuth::RegistrationsController::User): /Users/ybian/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/devise_token_auth-2d3595d405b7/app/controllers/devise_token_auth/registrations_controller.rb:24:in `create'
Seems that there is hard-coded reference to User in L24 of registrations_controller.rb:
User.skip_callback("create", :after, :send_on_create_confirmation_instructions)
The text was updated successfully, but these errors were encountered:
Good catch! Thanks @ybian!
Sorry, something went wrong.
hard-coded User and namespaced model
56e7d55
lynndylanhurley#68 lynndylanhurley#69
The fix for this has been pushed into version 0.1.30.beta4. Please test to confirm.
0.1.30.beta4
a80ca70
No branches or pull requests
TestCase:
ng-token-auth
anddevise_token_auth_demo
properly and make it work correctly;User
toDeveloper
and changeroutes.rb
accordingly to:mount_devise_token_auth_for 'Developer', at: '/auth'
Expected Result:
Should send out confirmation email successfully
Actual Result:
Got the following exception:
Seems that there is hard-coded reference to
User
in L24 of registrations_controller.rb:The text was updated successfully, but these errors were encountered: