Class: GotFixed::UserMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- GotFixed::UserMailer
- Defined in:
- app/mailers/got_fixed/user_mailer.rb
Instance Method Summary collapse
Instance Method Details
#issue_got_fixed_email(user, issue) ⇒ Object
5 6 7 8 9 |
# File 'app/mailers/got_fixed/user_mailer.rb', line 5 def issue_got_fixed_email(user, issue) @user = user @issue = issue mail(to: @user.email, subject: subject(issue)) end |
#subject(issue) ⇒ Object
11 12 13 14 |
# File 'app/mailers/got_fixed/user_mailer.rb', line 11 def subject(issue) template = GotFixed.config[:user_mailer][:subject_template] template % issue.attributes.symbolize_keys end |