Class: SponsoredProjectEffortMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/sponsored_project_effort_mailer.rb

Instance Method Summary collapse

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, options = {})
  @user = user
  @month = month
  @year = year

  mail(:to => options[:to] || @user.email,
       :subject => options[: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, options = {})
  @user = user
  @month = month
  @year = year

  mail(:to => options[:to] || @user.email,
       :subject => options[:subject] || "Sponsored projects confirmation email for #{Date::MONTHNAMES[month]} #{year}",
       :date => Time.now)
end