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