Module: HasOneEmailReview

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/has_one_email_review.rb

Overview

HasOneEmailReview Allows any model to easily review an email template and make changes to the body

Defined Under Namespace

Modules: Base

Instance Method Summary collapse

Instance Method Details

#build_email_review(atts = {}) ⇒ Object



21
22
23
# File 'app/models/concerns/has_one_email_review.rb', line 21

def build_email_review(atts = {})
  self.email_review ||= Effective::EmailReview.build(atts)
end

#email_review_attributes=(atts) ⇒ Object



25
26
27
# File 'app/models/concerns/has_one_email_review.rb', line 25

def email_review_attributes=(atts)
  self.email_review = Effective::EmailReview.new(atts)
end