Sha256: 6468c0e86204a5c43401b57be0e01fe184286011d66dd0b9ad25a028d8616db6

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

class MailEngine::TemplatePartial < ActiveRecord::Base
  validates_presence_of :partial_id, :placeholder_name

  belongs_to :mail_template
  belongs_to :partial, :class_name => "MailTemplate", :foreign_key => :partial_id

  scope :header, where(:placeholder_name => 'header')
  scope :footer, where(:placeholder_name => 'footer')
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mail_engine-0.1.2 app/models/mail_engine/template_partial.rb
mail_engine-0.1.1 app/models/mail_engine/template_partial.rb
mail_engine-0.1.0 app/models/mail_engine/template_partial.rb
mail_engine-0.0.1 app/models/mail_engine/template_partial.rb