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.43 test/mock_app/app/models/building.rb
active_scaffold-3.4.42 test/mock_app/app/models/building.rb
active_scaffold-3.4.41.1 test/mock_app/app/models/building.rb
active_scaffold-3.4.41 test/mock_app/app/models/building.rb
active_scaffold-3.4.40 test/mock_app/app/models/building.rb
active_scaffold-3.4.39 test/mock_app/app/models/building.rb
active_scaffold-3.4.38 test/mock_app/app/models/building.rb
active_scaffold-3.4.37 test/mock_app/app/models/building.rb
active_scaffold-3.4.36 test/mock_app/app/models/building.rb
active_scaffold-3.4.35 test/mock_app/app/models/building.rb
active_scaffold-3.4.34 test/mock_app/app/models/building.rb
active_scaffold-3.4.33 test/mock_app/app/models/building.rb
active_scaffold-3.4.32 test/mock_app/app/models/building.rb
active_scaffold-3.4.31 test/mock_app/app/models/building.rb
active_scaffold-3.4.30 test/mock_app/app/models/building.rb
active_scaffold-3.4.29 test/mock_app/app/models/building.rb
active_scaffold-3.4.28 test/mock_app/app/models/building.rb
active_scaffold-3.4.27 test/mock_app/app/models/building.rb
active_scaffold-3.4.26 test/mock_app/app/models/building.rb
active_scaffold-3.4.25 test/mock_app/app/models/building.rb