Sha256: b7eba215d675c34b96034727366087cb545982eb0d39bed99687d57de077ae50

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 Bytes

Contents

class Person < ActiveRecord::Base
  has_one   :cell_phone,
              :class_name => 'PhoneNumber',
              :conditions => {:kind => 'cell'}
  has_one   :work_phone,
              :class_name => 'PhoneNumber',
              :conditions => {:kind => 'work'}
  has_many  :phone_numbers
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
has_phone_numbers-0.0.3 test/app_root/app/models/person.rb
has_phone_numbers-0.0.4 test/app_root/app/models/person.rb