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

Use resource_class to override email confirmation. #64

Conversation

edgarhenriquez
Copy link
Contributor

Hi @lynndylanhurley,

If you try to use devise_token_auth without a defined User class, you'll get a:

NameError (uninitialized constant DeviseTokenAuth::RegistrationsController::User):
    .bundle/bundler/gems/devise_token_auth-b43a36fd21c6/app/controllers/devise_token_auth/registrations_controller.rb:25:in `create'

because the User.skip_callback("create", :after, :send_on_create_confirmation_instructions).

I changed it to use the generic resource_class and ran the test suite according to your instructions here.

I didn't add any test because I believe this change is related to d56af20, but let me know if I should add the test for it.

Thanks

@lynndylanhurley
Copy link
Owner

Thanks @edgarhenriquez! I'll review this and merge ASAP!

@lynndylanhurley
Copy link
Owner

Good catch! Thanks @edgarhenriquez!!!

lynndylanhurley added a commit that referenced this pull request Nov 10, 2014
…ail-confirmation

Use resource_class to override email confirmation.
@lynndylanhurley lynndylanhurley merged commit 34e4bcc into lynndylanhurley:master Nov 10, 2014
@edgarhenriquez edgarhenriquez deleted the use-resource-class-to-override-email-confirmation branch November 10, 2014 16:33
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