Class: RaceInstancesController

Inherits:
SiteController
  • Object
show all
Defined in:
app/controllers/race_instances_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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

#splitsObject



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