Class: IshManager::ApplicationMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- IshManager::ApplicationMailer
show all
- Defined in:
- app/mailers/ish_manager/application_mailer.rb
Instance Method Summary
collapse
Instance Method Details
#option_alert(option) ⇒ Object
18
19
20
21
|
# File 'app/mailers/ish_manager/application_mailer.rb', line 18
def option_alert option
@option = option
mail( :to => option.profile.email, :subject => "IshManager Option Alert :: #{option.ticker}" ).deliver
end
|
#shared_galleries(profiles, gallery) ⇒ Object
7
8
9
10
11
12
13
14
15
16
|
# File 'app/mailers/ish_manager/application_mailer.rb', line 7
def shared_galleries profiles, gallery
return if profiles.count == 0
@gallery = gallery
@domain = Rails.application.config.action_mailer.default_url_options[:host]
@galleries_path = IshManager::Engine.routes.url_helpers.galleries_path
@gallery_path = IshManager::Engine.routes.url_helpers.gallery_path(@gallery.slug)
mail( :to => '[email protected]',
:bcc => profiles.map { |p| p.email },
:subject => 'You got new shared galleries on pi manager' ).deliver
end
|
#stock_alert(stock) ⇒ Object
23
24
25
26
|
# File 'app/mailers/ish_manager/application_mailer.rb', line 23
def stock_alert stock
@stock = stock
mail( :to => stock.profile.email, :subject => "IshManager Stock Alert :: #{stock.ticker}" ).deliver
end
|