Sha256: 8c447a86773a66daecf576c743a2193b9f9f97ac6fa6bd2bee18142303490c9e

Contents?: true

Size: 270 Bytes

Versions: 9

Compression:

Stored size: 270 Bytes

Contents

class Floor < ActiveRecord::Base
  belongs_to :building
  belongs_to :tenant, :class_name => 'Person', :counter_cache => true
  has_one :address, :through => :building

  attr_accessor :number_required
  validates :number, :presence => true, :if => :number_required
end

Version data entries

9 entries across 9 versions & 1 rubygems

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