Sha256: 0ff0b226e5485cc37e7705476727a0f78ac152fff6df0e96bb31d7cae7b94001

Contents?: true

Size: 389 Bytes

Versions: 14

Compression:

Stored size: 389 Bytes

Contents

class OxTemplate < AbstractResource
  self.table_name = 'templates'
  establish_connection ((Rails.env=="development") ? :dev_oxen_tables : :oxen_tables )

  has_many :photos, foreign_key: 'template_id'

  has_paper_trail

  validates :template_key, presence: true
  validates :template_path, presence: true

  def list_title
    template_key
  end

  def name
    template_key
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
oxen_printer-0.4.15 app/models/ox_template.rb
oxen_printer-0.4.14 app/models/ox_template.rb
oxen_printer-0.4.13 app/models/ox_template.rb
oxen_printer-0.4.12 app/models/ox_template.rb
oxen_printer-0.4.11 app/models/ox_template.rb
oxen_printer-0.4.9 app/models/ox_template.rb
oxen_printer-0.4.8 app/models/ox_template.rb
oxen_printer-0.4.7 app/models/ox_template.rb
oxen_printer-0.4.5 app/models/ox_template.rb
oxen_printer-0.4.4 app/models/ox_template.rb
oxen_printer-0.4.3 app/models/ox_template.rb
oxen_printer-0.4.2 app/models/ox_template.rb
oxen_printer-0.4.1 app/models/ox_template.rb
oxen_printer-0.3.4 app/models/ox_template.rb