summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-27 23:01:04 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-27 23:01:04 -0400
commit2d7313767442956eab00671ac555c0ce4e583b5f (patch)
tree4d82b865add8617aadd6390b02f6f4cfa75657bb
parent987cd575c48b9ac1ff4a8232288484685ed8563d (diff)
handle what I can of `fgrep -r TODO app lib`
-rw-r--r--app/controllers/sessions_controller.rb2
-rw-r--r--app/controllers/tournaments_controller.rb8
-rw-r--r--app/views/matches/show.html.erb1
-rw-r--r--app/views/tournaments/show.html.erb3
-rw-r--r--lib/sampling/riot_api.rb3
5 files changed, 4 insertions, 13 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index a0390ad..9f0a8e3 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -18,7 +18,7 @@ class SessionsController < ApplicationController
if @user && @user.authenticate(params[:session][:password])
sign_in @user
format.html { redirect_to root_path }
- #format.json { #TODO }
+ #format.json { # TODO }
else
format.html { render action: 'new' }
format.json { render json: @user.errors, status: :unprocessable_entity }
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 2e854a2..c06c16c 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -87,14 +87,6 @@ class TournamentsController < ApplicationController
end
end
- def create_stage
-
- # stage = @tournament.stages.new
- # stage.create(TODO:PARAMETERS)
- # @tournament.stages.push(stage)
-
- end
-
# PATCH/PUT /tournaments/1
# PATCH/PUT /tournaments/1.json
def update
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index 3f9c6b4..01484d3 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -64,7 +64,6 @@
<% end %>
<% when 2 %>
<!-- Started, waiting to finish -->
- <!-- TODO -->
<%= @match.render_sampling(current_user) %>
<% when 3 %>
<!-- Finished -->
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index 53389bb..c71d3c6 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -47,8 +47,7 @@
<p>
<strong>Sampling method:</strong>
- <!-- TODO -->
- <%= @tournament.sampling_method %>
+ <%= @tournament.sampling_method.humanize.capitalize %>
</p>
<% @tournament.settings.each do |setting| %>
diff --git a/lib/sampling/riot_api.rb b/lib/sampling/riot_api.rb
index 333095c..8c34fc4 100644
--- a/lib/sampling/riot_api.rb
+++ b/lib/sampling/riot_api.rb
@@ -84,7 +84,8 @@ module Sampling
end
##
- # TODO description
+ # Return whether or not the API can get a given statistic for
+ # a given user.
public
def self.can_get?(user, stat)
if user.nil?