Method: IshManager::ApplicationMailer#stock_alert

Defined in:
app/mailers/ish_manager/application_mailer.rb

#stock_alert(watch_id) ⇒ Object



28
29
30
31
32
33
34
# File 'app/mailers/ish_manager/application_mailer.rb', line 28

def stock_alert watch_id
  @watch = Iro::OptionWatch.find watch_id
  mail({
    to: @watch.profile.email,
    subject: "Iro Watch Alert :: #{@watch.ticker} is #{@watch.direction} #{@watch.mark}."
  })
end