File: treasure.rb

package info (click to toggle)
ruby-activerecord-2.3 2.3.14-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,180 kB
  • sloc: ruby: 32,874; makefile: 7
file content (8 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
class Treasure < ActiveRecord::Base
  has_and_belongs_to_many :parrots
  belongs_to :looter, :polymorphic => true

  has_many :price_estimates, :as => :estimate_of

  accepts_nested_attributes_for :looter
end