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

make compatible with backgrounded-mailer #9

Merged
merged 3 commits into from Oct 9, 2012
Merged

make compatible with backgrounded-mailer #9

merged 3 commits into from Oct 9, 2012

Conversation

larsklevan
Copy link
Contributor

EmailPreview.delivery_method not applied if delivered backgrounded

@@ -11,7 +11,7 @@ def deliver
previous_delivery_method = ActionMailer::Base.delivery_method
begin
ActionMailer::Base.delivery_method = EmailPreview.delivery_method if EmailPreview.delivery_method
@mail.deliver
@mail.respond_to?(:deliver_now) ? @mail.deliver_now : @mail.deliver
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't the Resque::Rack::JobFlusher middleware pickup the backgrounded email and deliver it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sends it using the :test delivery method

wireframe added a commit that referenced this pull request Oct 9, 2012
make compatible with backgrounded-mailer
@wireframe wireframe merged commit 9a7d1ea into wireframe:master Oct 9, 2012
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.

None yet

2 participants