Class: SponsoredProjectEffortMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- SponsoredProjectEffortMailer
- Defined in:
- app/mailers/sponsored_project_effort_mailer.rb
Instance Method Summary collapse
- #changed_allocation_email_to_business_manager(user, month, year, options = {}) ⇒ Object
- #monthly_staff_email(user, month, year, options = {}) ⇒ Object
Instance Method Details
#changed_allocation_email_to_business_manager(user, month, year, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'app/mailers/sponsored_project_effort_mailer.rb', line 16 def changed_allocation_email_to_business_manager(user, month, year, = {}) @user = user @month = month @year = year mail(:to => [:to] || @user.email, :subject => [:subject] || "Action required: change in monthly allocations for #{@user.human_name}", :date => Time.now) end |
#monthly_staff_email(user, month, year, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/mailers/sponsored_project_effort_mailer.rb', line 6 def monthly_staff_email(user, month, year, = {}) @user = user @month = month @year = year mail(:to => [:to] || @user.email, :subject => [:subject] || "Sponsored projects confirmation email for #{Date::MONTHNAMES[month]} #{year}", :date => Time.now) end |