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