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

Version Path
oxen_printer-0.4.15 app/models/ox_printable.rb
oxen_printer-0.4.14 app/models/ox_printable.rb
oxen_printer-0.4.13 app/models/ox_printable.rb
oxen_printer-0.4.12 app/models/ox_printable.rb
oxen_printer-0.4.11 app/models/ox_printable.rb
oxen_printer-0.4.9 app/models/ox_printable.rb
oxen_printer-0.4.8 app/models/ox_printable.rb
oxen_printer-0.4.7 app/models/ox_printable.rb
oxen_printer-0.4.5 app/models/ox_printable.rb
oxen_printer-0.4.4 app/models/ox_printable.rb
oxen_printer-0.4.3 app/models/ox_printable.rb
oxen_printer-0.4.2 app/models/ox_printable.rb
oxen_printer-0.4.1 app/models/ox_printable.rb
oxen_printer-0.3.4 app/models/ox_printable.rb
oxen_printer-0.3.3 app/models/ox_printable.rb
oxen_printer-0.3.2 app/models/ox_printable.rb
oxen_printer-0.3.1 app/models/ox_printable.rb
oxen_printer-0.3.0 app/models/ox_printable.rb
oxen_printer-0.2.9 app/models/ox_printable.rb
oxen_printer-0.2.8 app/models/ox_printable.rb