Sha256: afecb3edd1489fbd3ed7b8d1290a818daf7bffc1b47af62634425ac889178812
Contents?: true
Size: 341 Bytes
Versions: 75
Compression:
Stored size: 341 Bytes
Contents
class Floor < ActiveRecord::Base belongs_to :building, :counter_cache => true, :inverse_of => :floors belongs_to :tenant, :class_name => 'Person', :counter_cache => true, :inverse_of => :floor has_one :address, :through => :building attr_accessor :number_required validates :number, :presence => true, :if => :number_required end
Version data entries
75 entries across 75 versions & 1 rubygems