Sha256: 92ec9329b2e2b1fda338f4dcb08b4b69a0597bd09483fcc1a37f558535bec00c

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

class Person < ActiveRecord::Base
  has_many :buildings, :foreign_key => :owner_id
  has_one :floor, :foreign_key => :tenant_id
  has_one :address, :through => :floor
  has_one :home, :through => :floor, :source => :building, :class_name => 'Building'

  has_many :contacts, :as => :contactable
  has_one :car, :dependent => :destroy
  
  has_many :files, :dependent => :destroy, :class_name => 'FileModel'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_scaffold-3.4.10 test/mock_app/app/models/person.rb
active_scaffold-3.4.9 test/mock_app/app/models/person.rb
active_scaffold-3.4.8 test/mock_app/app/models/person.rb
active_scaffold-3.4.7 test/mock_app/app/models/person.rb
active_scaffold-3.4.5 test/mock_app/app/models/person.rb
active_scaffold-3.4.4 test/mock_app/app/models/person.rb
active_scaffold-3.4.3 test/mock_app/app/models/person.rb
active_scaffold-3.4.2 test/mock_app/app/models/person.rb