Sha256: ede372283a431901cb5919b38d13b03820734d164d9cbefb015fc5ec614a1f02

Contents?: true

Size: 431 Bytes

Versions: 13

Compression:

Stored size: 431 Bytes

Contents

class ::Ish::EmailTemplate
  include Mongoid::Document
  include Mongoid::Timestamps

  field :slug
  validates_uniqueness_of :slug, scope: [ :version ]
  validates_presence_of :slug

  field :version, default: '0.0.0'

  TYPES = %w| partial plain |
  field :type
  def self.type_list
    [ [nil,nil] ] + TYPES.map { |i| [i, i] }
  end

  field :subject
  field :body
  field :from_email

end
EmailTemplate = ::Ish::EmailTemplate

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ish_models-0.0.33.194 lib/ish/email_template.rb
ish_models-0.0.33.193 lib/ish/email_template.rb
ish_models-0.0.33.192 lib/ish/email_template.rb
ish_models-0.0.33.191 lib/ish/email_template.rb
ish_models-0.0.33.190 lib/ish/email_template.rb
ish_models-0.0.33.189 lib/ish/email_template.rb
ish_models-0.0.33.188 lib/ish/email_template.rb
ish_models-0.0.33.187 lib/ish/email_template.rb
ish_models-0.0.33.186 lib/ish/email_template.rb
ish_models-0.0.33.185 lib/ish/email_template.rb
ish_models-0.0.33.184 lib/ish/email_template.rb
ish_models-0.0.33.183 lib/ish/email_template.rb
ish_models-0.0.33.182 lib/ish/email_template.rb