Sha256: 494f552b337a3f2e97a72b4f962294bda9806945a340b6036527e166500ab9d2
Contents?: true
Size: 407 Bytes
Versions: 7
Compression:
Stored size: 407 Bytes
Contents
class OxPrintserver < AbstractResource self.table_name = 'printservers' establish_connection ((Rails.env=="development") ? :dev_oxen_tables : :oxen_tables ) has_paper_trail belongs_to :account has_many :printers, dependent: :destroy validates :mac_addr, presence: true validates :port, presence: true scope :active, -> { where(active: true) } def list_title location end end
Version data entries
7 entries across 7 versions & 1 rubygems