Class: Effective::WorkExperienceMailer
- Inherits:
-
Object
- Object
- Effective::WorkExperienceMailer
- Includes:
- EffectiveEmailTemplatesMailer, EffectiveMailer
- Defined in:
- app/mailers/effective/work_experience_mailer.rb
Instance Method Summary collapse
- #work_experience_summary_reviewed(resource, opts = {}) ⇒ Object
- #work_experience_summary_submitted(resource, opts = {}) ⇒ Object
Instance Method Details
#work_experience_summary_reviewed(resource, opts = {}) ⇒ Object
12 13 14 15 |
# File 'app/mailers/effective/work_experience_mailer.rb', line 12 def work_experience_summary_reviewed(resource, opts = {}) @assigns = work_experience_summary_assigns(resource) mail(to: resource.user.email, **headers_for(resource, opts)) end |
#work_experience_summary_submitted(resource, opts = {}) ⇒ Object
7 8 9 10 |
# File 'app/mailers/effective/work_experience_mailer.rb', line 7 def work_experience_summary_submitted(resource, opts = {}) @assigns = work_experience_summary_assigns(resource) mail(to: resource.mentor.email, **headers_for(resource, opts)) end |