Class: AdminMailer

Inherits:
Devise::Mailer
  • Object
show all
Defined in:
app/mailers/admin_mailer.rb

Instance Method Summary collapse

Instance Method Details

#notify_about_new_station(user, station) ⇒ Object


31
32
33
34
35
36
37
# File 'app/mailers/admin_mailer.rb', line 31

def notify_about_new_station(user, station)
  @station = station
  @user = user
  mail(to:"[email protected]", subject:"New station") do |format|
    format.html
  end
end

#notify_about_new_station_and_invitation(email, station) ⇒ Object


23
24
25
26
27
28
29
# File 'app/mailers/admin_mailer.rb', line 23

def notify_about_new_station_and_invitation(email, station)
  @station = station
  @email = email
  mail(to:"[email protected]", subject:"New station created and user invited") do |format|
    format.html
  end
end

#notify_about_new_station_without_owner(station) ⇒ Object

TODO:

CLEANUP - can unregistered users still create stations?

I dont think so


16
17
18
19
20
21
# File 'app/mailers/admin_mailer.rb', line 16

def notify_about_new_station_without_owner(station)
  @station = station
  mail(to:"[email protected]", subject:"New station but now owner set") do |format|
    format.html
  end
end

#notify_about_new_user(user) ⇒ Object


7
8
9
10
11
12
# File 'app/mailers/admin_mailer.rb', line 7

def notify_about_new_user(user)
  @user = user
  mail(to:"[email protected]", subject:"New user registered at remote wind") do |format|
    format.html
  end
end