Class: ThinkFeelDoEngine::MessageNotifications
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ThinkFeelDoEngine::MessageNotifications
- Defined in:
- app/mailers/think_feel_do_engine/message_notifications.rb
Overview
Mailer for notifying of new application messages.
Instance Method Summary collapse
Instance Method Details
#new_for_coach(coach, group) ⇒ Object
5 6 7 8 9 10 |
# File 'app/mailers/think_feel_do_engine/message_notifications.rb', line 5 def new_for_coach(coach, group) application_name = I18n.t(:application_name, default: "ThinkFeelDo") @group = group mail to: coach.email, subject: "#{application_name}: You have a new message" end |
#new_for_participant(participant) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/mailers/think_feel_do_engine/message_notifications.rb', line 12 def new_for_participant(participant) application_name = I18n.t(:application_name, default: "ThinkFeelDo") @context_name = participant .current_group .arm .bit_core_tools .find_by_type("Tools::Messages") .title mail to: participant.email, subject: "#{application_name}: You have a new message" end |