Sha256: c652fff0d85e3652213d213ecfea4a9b36817b0c41757fd13f0ffac2d4f973e2
Contents?: true
Size: 679 Bytes
Versions: 3
Compression:
Stored size: 679 Bytes
Contents
class TbCommerce::OrderMailer < ApplicationMailer # Send an email to the configured admin address # def order_placed(order) return if TbCommerce.config.order_placed_email.nil? @order = order mail(:to => TbCommerce.config.order_placed_email, :from => Spud::Core.config.from_address) end # Send a receipt to the user who placed the order # def order_confirmation(order) @order = order mail(:to => order.email, :from => Spud::Core.config.from_address) end # Send an email to the user with shipping information # def order_shipped(order) @order = order mail(:to => order.email, :from => Spud::Core.config.from_address) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tb_commerce-0.0.4 | app/mailers/tb_commerce/order_mailer.rb |
tb_commerce-0.0.3 | app/mailers/tb_commerce/order_mailer.rb |
tb_commerce-0.0.2 | app/mailers/tb_commerce/order_mailer.rb |