Class: ProducerMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ProducerMailer
- Defined in:
- app/mailers/producer_mailer.rb
Instance Method Summary collapse
- #donation_kit_notification(kit, producer) ⇒ Object
- #mailchimp_kit_initial_sync_notification(kit, producer, added_list_names, removed_list_names) ⇒ Object
- #ticket_offer_accepted(ticket_offer) ⇒ Object
- #ticket_offer_rejected(ticket_offer) ⇒ Object
Instance Method Details
#donation_kit_notification(kit, producer) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/mailers/producer_mailer.rb', line 5 def donation_kit_notification(kit, producer) @kit = kit @organization = kit.organization @producer = producer mail :to => producer.email, :subject => "Artful.ly: Complete Donation Kit Activation for #{@organization.name}" end |
#mailchimp_kit_initial_sync_notification(kit, producer, added_list_names, removed_list_names) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'app/mailers/producer_mailer.rb', line 39 def mailchimp_kit_initial_sync_notification(kit, producer, added_list_names, removed_list_names) @kit = kit @added_list_names = added_list_names @removed_list_names = removed_list_names @organization = kit.organization mail :to => producer.email, :subject => "Artful.ly: MailChimp kit synced" end |
#ticket_offer_accepted(ticket_offer) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/mailers/producer_mailer.rb', line 13 def ticket_offer_accepted(ticket_offer) @ticket_offer = ticket_offer @organization = ticket_offer.organization @producer = @organization.owner @reseller_profile = ticket_offer.reseller_profile @reseller = @reseller_profile.organization @event = @ticket_offer.event @show = @ticket_offer.show @ticket_type = @ticket_offer.ticket_type mail :to => @producer.email, :subject => "Artful.ly: Ticket Offer Accepted" end |
#ticket_offer_rejected(ticket_offer) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'app/mailers/producer_mailer.rb', line 26 def ticket_offer_rejected(ticket_offer) @ticket_offer = ticket_offer @organization = ticket_offer.organization @producer = @organization.owner @reseller_profile = ticket_offer.reseller_profile @reseller = @reseller_profile.organization @event = @ticket_offer.event @show = @ticket_offer.show @ticket_type = @ticket_offer.ticket_type mail :to => @producer.email, :subject => "Artful.ly: Ticket Offer Rejected" end |