allpro/app/models/workout.rb

6 lines
161 B
Ruby
Raw Normal View History

2013-08-04 20:58:01 -04:00
class Workout < ActiveRecord::Base
2013-08-10 22:15:26 -04:00
DAY_TYPES = %w(heavy medium light)
2013-08-10 09:24:49 -04:00
validates_date :date
2013-08-10 22:15:26 -04:00
validates_inclusion_of :day_type, :in => Workout::DAY_TYPES
2013-08-04 20:58:01 -04:00
end