Closed lexruee closed 9 years ago
Refactor the following SportTypeLookup table:
SportTypeLookup = { 'Running' => RestAdapter::Models::Sport.new(name: 'Running'), 'Boxing' => RestAdapter::Models::Sport.new(name: 'Boxing'), 'Soccer' => RestAdapter::Models::Sport.new(name: 'Soccer'), 'Cycling' => RestAdapter::Models::Sport.new(name: 'Cycling'), 'running' => RestAdapter::Models::Sport.new(name: 'Running'), 'boxing' => RestAdapter::Models::Sport.new(name: 'Boxing'), 'soccer' => RestAdapter::Models::Sport.new(name: 'Soccer'), 'cycling' => RestAdapter::Models::Sport.new(name: 'Cycling'), }
See: https://github.com/Bergrebell/CyberCoach/blob/dev/lib/facade/sport_session.rb
Replace
RestAdapter::Models::Sport.new(name: 'Running')
with
RestAdapter::Models::Sport::Type::Running
and also for the other types soccer, cycling and boxing.
Refactored in commit: 69c2c57f3d7c1109235f95302f31cd2304aa4205
Refactor the following SportTypeLookup table:
See: https://github.com/Bergrebell/CyberCoach/blob/dev/lib/facade/sport_session.rb
Replace
with
and also for the other types soccer, cycling and boxing.