Permalink
Browse files

fix indentation

  • Loading branch information...
rkh committed Jan 17, 2012
1 parent c726167 commit af3663ca6200f8292b221acd5a406af33c219249
Showing with 13 additions and 13 deletions.
  1. +13 −13 lib/rack/contrib/mailexceptions.rb
@@ -51,25 +51,25 @@ def smtp(settings={})
private
def generate_mail(exception, env)
- mail = Mail.new({
- :from => config[:from],
- :to => config[:to],
- :subject => config[:subject] % [exception.to_s],
- :body => @template.result(binding)
- })
+ mail = Mail.new({
+ :from => config[:from],
+ :to => config[:to],
+ :subject => config[:subject] % [exception.to_s],
+ :body => @template.result(binding)
+ })
end
def send_notification(exception, env)
mail = generate_mail(exception, env)
smtp = config[:smtp]
- # for backward compability, replace the :server key with :address
- address = smtp.delete :server
- smtp[:address] = address if address
- mail.delivery_method :smtp, smtp
- mail.deliver!
+ # for backward compability, replace the :server key with :address
+ address = smtp.delete :server
+ smtp[:address] = address if address
+ mail.delivery_method :smtp, smtp
+ mail.deliver!
env['mail.sent'] = true
- mail
- end
+ mail
+ end
def extract_body(env)
if io = env['rack.input']

0 comments on commit af3663c

Please sign in to comment.