Class: GeneralMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- GeneralMailer
- Defined in:
- app/mailers/general_mailer.rb
Instance Method Summary collapse
Instance Method Details
#email(email) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'app/mailers/general_mailer.rb', line 2 def email(email) mail(headers(email)) do |format| format.text { render text: email.plain_content } format.html { render html: email.html_content.html_safe } end email.mark_as_sent! end |