Class: ContactEmail
- Inherits:
-
Email
- Object
- ContactEmail
- Includes:
- ScheduledEmail
- Defined in:
- app/models/contact_email.rb
Overview
A ContactEmail is a one time mail generated from an EmailTemplate, sent not to a list, but to a set of user_ids.
Instance Attribute Summary collapse
-
#user_ids ⇒ Object
Returns the value of attribute user_ids.
Class Method Summary collapse
Instance Attribute Details
#user_ids ⇒ Object
Returns the value of attribute user_ids.
26 27 28 |
# File 'app/models/contact_email.rb', line 26 def user_ids @user_ids end |
Class Method Details
.new_from_template(template, attrs = {}) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'app/models/contact_email.rb', line 16 def new_from_template(template, attrs = {}) new({ :name => "#{template.name} - #{DateTime.now.to_i}", :subject => template.subject, :html_body => template.html_body, :text_body => template.text_body }.merge(attrs)) end |