blob: 6af1fcd16e7870157c274ae494c0c32d74080207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class ParkingStall < ActiveRecord::Base
attr_accessible :name, :lot, :parking_stallable_id, :parking_stallable_type, :comment
belongs_to :parking_stallable, :polymorphic => true, :touch => true
validates :name,
:presence => true,
:uniqueness => true
validates :lot,
:presence => true
def to_s
name.to_s
end
end
|