Sha256: 4e0bae77b4b6ffcb8f67b1410ab058731f3cab0367d866e1088f00cece1eef96
Contents?: true
Size: 357 Bytes
Versions: 23
Compression:
Stored size: 357 Bytes
Contents
class OxPrintable < AbstractResource self.table_name = 'printables' establish_connection ((Rails.env=="development") ? :dev_oxen_tables : :oxen_tables ) has_paper_trail belongs_to :account belongs_to :printer belongs_to :printable, polymorphic: true before_save :set_account def set_account self.account = printer.account end end
Version data entries
23 entries across 23 versions & 1 rubygems