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

Version Path
oxen_printer-0.4.15 app/models/ox_printserver.rb
oxen_printer-0.4.14 app/models/ox_printserver.rb
oxen_printer-0.4.13 app/models/ox_printserver.rb
oxen_printer-0.4.12 app/models/ox_printserver.rb
oxen_printer-0.4.9 app/models/ox_printserver.rb
oxen_printer-0.4.8 app/models/ox_printserver.rb
oxen_printer-0.4.7 app/models/ox_printserver.rb