Sha256: f8c5720bb7b1016e7cc2f50986c5d3829ad016f247141305e9aa5770750cd595

Contents?: true

Size: 312 Bytes

Versions: 35

Compression:

Stored size: 312 Bytes

Contents

class Building < ActiveRecord::Base
  belongs_to :owner, :class_name => 'Person', :counter_cache => true, :inverse_of => :building
  has_many :floors, :dependent => :destroy, :inverse_of => :building

  has_one :address, :as => :addressable

  has_many :tenants, :through => :floors, :class_name => 'Person'
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
active_scaffold-3.4.24 test/mock_app/app/models/building.rb
active_scaffold-3.4.23 test/mock_app/app/models/building.rb
active_scaffold-3.4.22 test/mock_app/app/models/building.rb
active_scaffold-3.4.21.1 test/mock_app/app/models/building.rb
active_scaffold-3.4.21 test/mock_app/app/models/building.rb
active_scaffold-3.4.20 test/mock_app/app/models/building.rb
active_scaffold-3.4.19 test/mock_app/app/models/building.rb
active_scaffold-3.4.18.1 test/mock_app/app/models/building.rb
active_scaffold-3.4.18 test/mock_app/app/models/building.rb
active_scaffold-3.4.17 test/mock_app/app/models/building.rb
active_scaffold-3.4.16 test/mock_app/app/models/building.rb
active_scaffold-3.4.14 test/mock_app/app/models/building.rb
active_scaffold-3.4.13 test/mock_app/app/models/building.rb
active_scaffold-3.4.12 test/mock_app/app/models/building.rb
active_scaffold-3.4.11 test/mock_app/app/models/building.rb