Permalink
Browse files

Tiny refactor

  • Loading branch information...
1 parent 5e086cc commit 544b5ee48bdbc5c2f62f4fb720c082a72b39b7a5 @spastorino spastorino committed Nov 29, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 actionmailer/lib/action_mailer/base.rb
View
5 actionmailer/lib/action_mailer/base.rb
@@ -508,10 +508,7 @@ def initialize(method_name=nil, *args)
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:

0 comments on commit 544b5ee

Please sign in to comment.