-
Notifications
You must be signed in to change notification settings - Fork 47
Error running ar_sendmail when using Alternate Mail Storage #6
Comments
I'm using adzap-ar_mailer (2.1.8) |
What version of Rails? |
2.3.5, no easy way to update right now (even to 2.3.6) |
Solved! As you can see config/enviroment is loaded before action mailer actually got email_class accessors. You can add
to the first line of your initializer so it gets these methods before you use them. Maybe you could update README. |
That require actually seems unnecessary as the gem/plugin should be loaded already after the environment loads. So I am not sure why this can't work without requiring ar_mailer at all. |
yes, it's strange when I run irb in rails app root and run I don't see why but that require helped. Are you able to reproduce this problem (e.g. on newer version of rails) |
I set another class in initializer and when ar_sendmail is run I got Unhandled exception undefined method `email_class=' for ActionMailer::Base:Class(NoMethodError):
The text was updated successfully, but these errors were encountered: