Sha256: 83aec3aaf1ce6682148351fff83eb5570abe7904d65d07444698e264a0a58243

Contents?: true

Size: 301 Bytes

Versions: 89

Compression:

Stored size: 301 Bytes

Contents

module Piggybak
  class Notifier < ActionMailer::Base
    default :from => Piggybak.config.email_sender,
            :cc => Piggybak.config.order_cc

    def order_notification(order)
      @order = order

      mail(:to => order.email,
           :subject => "Order ##{@order.id}")
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
piggybak-0.4.27 app/mailers/piggybak/notifier.rb
piggybak-0.4.26 app/mailers/piggybak/notifier.rb
piggybak-0.4.25 app/mailers/piggybak/notifier.rb
piggybak-0.4.24 app/mailers/piggybak/notifier.rb
piggybak-0.4.23 app/mailers/piggybak/notifier.rb
piggybak-0.4.22 app/mailers/piggybak/notifier.rb
piggybak-0.4.21 app/mailers/piggybak/notifier.rb
piggybak-0.4.20 app/mailers/piggybak/notifier.rb
piggybak-0.4.19 app/mailers/piggybak/notifier.rb
piggybak-0.4.18 app/mailers/piggybak/notifier.rb
piggybak-0.4.17 app/mailers/piggybak/notifier.rb
piggybak-0.4.16 app/mailers/piggybak/notifier.rb
piggybak-0.4.15 app/mailers/piggybak/notifier.rb
piggybak-0.4.14 app/mailers/piggybak/notifier.rb
piggybak-0.4.13 app/mailers/piggybak/notifier.rb
piggybak-0.4.12 app/mailers/piggybak/notifier.rb
piggybak-0.4.11 app/mailers/piggybak/notifier.rb
piggybak-0.4.10 app/mailers/piggybak/notifier.rb
piggybak-0.4.9 app/mailers/piggybak/notifier.rb
piggybak-0.4.8 app/mailers/piggybak/notifier.rb