Skip to content

Commit

Permalink
Merge pull request #9 from larsklevan/backgrounded-mailer-compat
Browse files Browse the repository at this point in the history
make compatible with backgrounded-mailer
  • Loading branch information
wireframe committed Oct 9, 2012
2 parents 2f07b3b + 5228b10 commit 9a7d1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/email_preview_controller.rb
Expand Up @@ -8,7 +8,7 @@ class EmailPreviewController < ApplicationController

def deliver
@mail.to params[:to]
@mail.deliver
@mail.respond_to?(:deliver_now) ? @mail.deliver_now : @mail.deliver
redirect_to details_email_preview_path(params[:id])
end
def preview
Expand Down

0 comments on commit 9a7d1ea

Please sign in to comment.