Sha256: 185f62916b89283f460be14573a1f6875301be724093c78a8aedbae8e35911ce

Contents?: true

Size: 406 Bytes

Versions: 46

Compression:

Stored size: 406 Bytes

Contents

class EmailTemplate < ApplicationRecord
  include Concerns::Translatable
  translatable_fields :subject, :plain_content, :html_content

  include Concerns::Sortable

  validates :description, :from_name, :from_email, presence: true
  validates :identifier, presence: true, uniqueness: { case_sensitive: false }
  validates :from_email, email: true
  validates :cc, :bcc, email: true, allow_blank: true
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
udongo-7.2.0 app/models/email_template.rb
udongo-7.1.3 app/models/email_template.rb
udongo-7.1.2 app/models/email_template.rb
udongo-7.1.1 app/models/email_template.rb
udongo-7.1.0 app/models/email_template.rb
udongo-7.0.4 app/models/email_template.rb
udongo-7.0.3 app/models/email_template.rb
udongo-7.0.2 app/models/email_template.rb
udongo-7.0.1 app/models/email_template.rb
udongo-7.0.0 app/models/email_template.rb
udongo-6.6.3 app/models/email_template.rb
udongo-6.6.2 app/models/email_template.rb
udongo-6.6.1 app/models/email_template.rb
udongo-6.6.0 app/models/email_template.rb
udongo-6.5.2 app/models/email_template.rb
udongo-6.5.1 app/models/email_template.rb
udongo-6.5.0 app/models/email_template.rb
udongo-6.4.1 app/models/email_template.rb
udongo-6.4.0 app/models/email_template.rb
udongo-6.3.2 app/models/email_template.rb