allpro/app/models/lift.rb

8 lines
224 B
Ruby
Raw Normal View History

2013-08-12 03:31:42 -04:00
class Lift < ActiveRecord::Base
belongs_to :workout
LIFTS = [:sqaut, :benchpress, :bentoverrow, :overheadpress,
:straightlegdeadlift, :uprightrow, :calfraise ]
validates_inclusion_of :lift, :in => Lift::LIFTS
end