Class: ForemanPatch::CycleMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/foreman_patch/cycle_mailer.rb

Instance Method Summary collapse

Instance Method Details

#planned(options) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/mailers/foreman_patch/cycle_mailer.rb', line 5

def planned(options)
  @user = options[:user]

  @cycle = options[:cycle]

  set_locale_for(@user) do
    mail(to: @user.mail, subject: (_("Patching Cycle Planned")))
  end
end