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.9.0 app/models/email_template.rb
udongo-7.8.1 app/models/email_template.rb
udongo-7.8.0 app/models/email_template.rb
udongo-7.7.2 app/models/email_template.rb
udongo-7.7.1 app/models/email_template.rb
udongo-7.7.0 app/models/email_template.rb
udongo-7.6.2 app/models/email_template.rb
udongo-7.6.1 app/models/email_template.rb
udongo-7.6.0 app/models/email_template.rb
udongo-7.5.1 app/models/email_template.rb
udongo-7.5.0 app/models/email_template.rb
udongo-7.4.2 app/models/email_template.rb
udongo-7.4.1 app/models/email_template.rb
udongo-7.4.0 app/models/email_template.rb
udongo-7.3.5 app/models/email_template.rb
udongo-7.3.4 app/models/email_template.rb
udongo-7.3.3 app/models/email_template.rb
udongo-7.3.2 app/models/email_template.rb
udongo-7.3.1 app/models/email_template.rb
udongo-7.2.1 app/models/email_template.rb