app/models/email_template.rb in e9_crm-0.1.13 vs app/models/email_template.rb in e9_crm-0.1.14
- old
+ new
@@ -3,12 +3,10 @@
#
class EmailTemplate < Email
# TODO the email class hierarchy needs a major refactoring, it's backwards and convoluted
before_save :generate_html_body_from_text_body
- validates :text_body, :presence => true
- validates :subject, :presence => true
- validates :from_email, :presence => true, :email => { :allow_blank => true }
+ validates :from_email, :email => { :allow_blank => true }
def as_json(options = {})
{}.tap do |hash|
hash[:to] = recipient.email
hash[:reply_to] = reply_email