Sha256: 3a78492969fa37677b037b6c2963eb28d6ded2811c6dc25938c845148b5fe7e9

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

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

  include Concerns::Sortable

  validates :description, :from_name, presence: true
  validates :identifier, presence: true, uniqueness: { case_sensitive: false }
  validates :from_email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
udongo-1.0.4 app/models/email_template.rb
udongo-1.0.3 app/models/email_template.rb
udongo-1.0.2 app/models/email_template.rb
udongo-1.0.1 app/models/email_template.rb
udongo-1.0.0 app/models/email_template.rb
udongo-0.1.0 app/models/email_template.rb