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

Error with mailer_sender #1037

Closed
jdevng opened this issue Nov 29, 2017 · 5 comments
Closed

Error with mailer_sender #1037

jdevng opened this issue Nov 29, 2017 · 5 comments

Comments

@jdevng
Copy link

jdevng commented Nov 29, 2017

config/initializers/devise_token_auth.rb:3:in `block in <top (required)>': undefined method `mailer_sender=' for DeviseTokenAuth:Module (NoMethodError)

In my initializer:

DeviseTokenAuth.setup do |config|
  config.mailer_sender = "[email protected]"

if I change DeviseTokenAuth to Devise, it works. I'm not well versed enough to contribute with a change - I would assume this is an issue with DeviseTokenAuth not inheriting.

@zachfeldman
Copy link
Contributor

Hey @jdevng does this actually affect the outcome of your app? If you change the line to Devise.setup, does your mail send correctly?

@jdevng
Copy link
Author

jdevng commented Nov 30, 2017

Yes - I'll run some broader tests.

@MaicolBen
Copy link
Collaborator

MaicolBen commented Dec 1, 2017

You have to use Devise there, check at the end of the section of https://github.com/lynndylanhurley/devise_token_auth#configuration-cont

@jdevng
Copy link
Author

jdevng commented Dec 3, 2017

Thanks @MaicolBen - am I losing anything by not using the default value?

@MaicolBen
Copy link
Collaborator

No, you should change it unless you want "myapp.com" mail

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

No branches or pull requests

3 participants