Mailer and other upgrades

This commit is contained in:
2013-01-17 09:15:42 +01:00
parent 26810defcd
commit 730768cb59
36 changed files with 242 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
class SupplierMailer < ActionMailer::Base
default from: "Qwaiter <service@qwaiter.com>"
layout 'mail'
def creation(supplier)
I18n.locale = :nl
@supplier = supplier
mail to: supplier.email, subject: I18n.t('mailer.supplier.creation.subject', name: supplier.name)
end
end