Module: MuckCommerce::Mailers::CommerceMailer
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/muck-commerce/mailers/commerce_mailer.rb
Instance Method Summary collapse
- #cc_declined(user) ⇒ Object
- #coupon_code(email, subject, message, coupon_code) ⇒ Object
- #user_subscribe_notification(user, subscription) ⇒ Object
Instance Method Details
#cc_declined(user) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/muck-commerce/mailers/commerce_mailer.rb', line 27 def cc_declined(user) @user = user mail(:to => email, :subject => I18n.translate('muck.commerce.cc_declined')) do |format| format.html format.text end end |
#coupon_code(email, subject, message, coupon_code) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/muck-commerce/mailers/commerce_mailer.rb', line 8 def coupon_code(email, subject, , coupon_code) @email = email @message = @coupon_code = coupon_code mail(:to => email, :subject => subject) do |format| format.html format.text end end |
#user_subscribe_notification(user, subscription) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/muck-commerce/mailers/commerce_mailer.rb', line 18 def user_subscribe_notification(user, subscription) @user = user @subscription = subscription mail(:to => email, :subject => I18n.translate('muck.commerce.subscribe_notification_subject')) do |format| format.html format.text end end |