Class: RaceInstancesController
- Inherits:
-
SiteController
- Object
- SiteController
- RaceInstancesController
- Defined in:
- app/controllers/race_instances_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/race_instances_controller.rb', line 6 def show expires_in 1.month, :private => false, :public => true respond_to do |format| format.html {} format.csv {} format.json { render :json => @performances.completed } end end |
#splits ⇒ Object
15 16 17 18 19 |
# File 'app/controllers/race_instances_controller.rb', line 15 def splits expires_in 1.month, :private => false, :public => true @checkpoints = @instance.checkpoints @splits = @instance.assembled_checkpoint_times end |