Skip to content
Browse files

fix syntax error in backup_mailer.rb

  • Loading branch information...
1 parent bc54798 commit e87ff602ce10cc987da3b982d59a4afcee758bb0 @lazylester committed Mar 20, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 app/models/backup_mailer.rb
View
5 app/models/backup_mailer.rb
@@ -5,9 +5,8 @@ def backup_file(zipfile)
:headers => ["Reply-to" => "#{ADMIN_EMAIL}",
"Message-ID"=>"<#{DateTime.now.to_formatted_s(:number)}@#{SITE_URL}>"],
:subject => "#{ORGANIZATION_NAME} daily backup file",
- :attachments => DateTime.now.to_formatted_s(:db)+"_production_backup.zip" =>
- {:mime_type => "application/x-gzip",
- :content => zipfile}
+ :attachments => {DateTime.now.to_formatted_s(:db)+"_production_backup.zip" =>
+ {:mime_type => "application/x-gzip", :content => zipfile}}
)
end
end

0 comments on commit e87ff60

Please sign in to comment.
Something went wrong with that request. Please try again.