Class: ShotMailer

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

Instance Method Summary collapse

Instance Method Details

#reminder_email(shot) ⇒ Object


4
5
6
7
8
# File 'app/mailers/shot_mailer.rb', line 4

def reminder_email(shot)
  @user = shot.organization.owner
  @shot = shot
  mail(:to => @user.email, :subject => "A shot is about to expire.")
end