From 544b5ee48bdbc5c2f62f4fb720c082a72b39b7a5 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Thu, 29 Nov 2012 09:53:25 -0200 Subject: Tiny refactor --- actionmailer/lib/action_mailer/base.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'actionmailer/lib') diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 2b533ad054..c9f10b359b 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -508,10 +508,7 @@ module ActionMailer def process(*args) #:nodoc: lookup_context.skip_default_locale! - generated_mail = super - unless generated_mail - @_message = NullMail.new - end + @_message = NullMail.new unless super end class NullMail #:nodoc: -- cgit v1.2.3