summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-27 13:25:18 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-27 13:25:18 -0400
commit9a8d6814511ce257241a03b5763430294ed3e381 (patch)
tree9028096ba88ed799c8cdc7ed895bf8eaeb623d72 /app
parent0bc6d5c7266e0cc0b64d5329b861cc90d80cec79 (diff)
ran ./generate.sh
Diffstat (limited to 'app')
-rw-r--r--app/controllers/games_controller.rb2
-rw-r--r--app/controllers/tournaments_controller.rb2
-rw-r--r--app/views/games/_form.html.erb8
-rw-r--r--app/views/games/index.html.erb4
-rw-r--r--app/views/games/index.json.jbuilder2
-rw-r--r--app/views/games/show.html.erb10
-rw-r--r--app/views/games/show.json.jbuilder2
-rw-r--r--app/views/tournaments/_form.html.erb8
-rw-r--r--app/views/tournaments/index.html.erb4
-rw-r--r--app/views/tournaments/index.json.jbuilder2
-rw-r--r--app/views/tournaments/show.html.erb10
-rw-r--r--app/views/tournaments/show.json.jbuilder2
12 files changed, 6 insertions, 50 deletions
diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb
index 76a6296..55d16a0 100644
--- a/app/controllers/games_controller.rb
+++ b/app/controllers/games_controller.rb
@@ -69,6 +69,6 @@ class GamesController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def game_params
- params.require(:game).permit(:parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method, :scoring_method)
+ params.require(:game).permit(:parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method)
end
end
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 64ab155..1b84f82 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -69,6 +69,6 @@ class TournamentsController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def tournament_params
- params.require(:tournament).permit(:game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method, :scoring_method)
+ params.require(:tournament).permit(:game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method)
end
end
diff --git a/app/views/games/_form.html.erb b/app/views/games/_form.html.erb
index b1db0b3..e7def85 100644
--- a/app/views/games/_form.html.erb
+++ b/app/views/games/_form.html.erb
@@ -36,14 +36,6 @@
<%= f.number_field :max_teams_per_match %>
</div>
<div class="field">
- <%= f.label :set_rounds %><br>
- <%= f.number_field :set_rounds %>
- </div>
- <div class="field">
- <%= f.label :randomized_teams %><br>
- <%= f.check_box :randomized_teams %>
- </div>
- <div class="field">
<%= f.label :sampling_method %><br>
<%= f.text_field :sampling_method %>
</div>
diff --git a/app/views/games/index.html.erb b/app/views/games/index.html.erb
index 207a0ba..8c316de 100644
--- a/app/views/games/index.html.erb
+++ b/app/views/games/index.html.erb
@@ -9,8 +9,6 @@
<th>Max players per team</th>
<th>Min teams per match</th>
<th>Max teams per match</th>
- <th>Set rounds</th>
- <th>Randomized teams</th>
<th>Sampling method</th>
<th>Scoring method</th>
<th></th>
@@ -28,8 +26,6 @@
<td><%= game.max_players_per_team %></td>
<td><%= game.min_teams_per_match %></td>
<td><%= game.max_teams_per_match %></td>
- <td><%= game.set_rounds %></td>
- <td><%= game.randomized_teams %></td>
<td><%= game.sampling_method %></td>
<td><%= game.scoring_method %></td>
<td><%= link_to 'Show', game %></td>
diff --git a/app/views/games/index.json.jbuilder b/app/views/games/index.json.jbuilder
index 7964f2c..0e9769b 100644
--- a/app/views/games/index.json.jbuilder
+++ b/app/views/games/index.json.jbuilder
@@ -1,4 +1,4 @@
json.array!(@games) do |game|
- json.extract! game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method, :scoring_method
+ json.extract! game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method
json.url game_url(game, format: :json)
end
diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb
index 6bca111..f132d9a 100644
--- a/app/views/games/show.html.erb
+++ b/app/views/games/show.html.erb
@@ -31,16 +31,6 @@
</p>
<p>
- <strong>Set rounds:</strong>
- <%= @game.set_rounds %>
-</p>
-
-<p>
- <strong>Randomized teams:</strong>
- <%= @game.randomized_teams %>
-</p>
-
-<p>
<strong>Sampling method:</strong>
<%= @game.sampling_method %>
</p>
diff --git a/app/views/games/show.json.jbuilder b/app/views/games/show.json.jbuilder
index c5fb4ed..981c31e 100644
--- a/app/views/games/show.json.jbuilder
+++ b/app/views/games/show.json.jbuilder
@@ -1 +1 @@
-json.extract! @game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method, :scoring_method, :created_at, :updated_at
+json.extract! @game, :id, :parent_id, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method, :created_at, :updated_at
diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb
index 7127d38..be5cf56 100644
--- a/app/views/tournaments/_form.html.erb
+++ b/app/views/tournaments/_form.html.erb
@@ -40,14 +40,6 @@
<%= f.number_field :max_teams_per_match %>
</div>
<div class="field">
- <%= f.label :set_rounds %><br>
- <%= f.number_field :set_rounds %>
- </div>
- <div class="field">
- <%= f.label :randomized_teams %><br>
- <%= f.check_box :randomized_teams %>
- </div>
- <div class="field">
<%= f.label :sampling_method %><br>
<%= f.text_field :sampling_method %>
</div>
diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb
index c2b5a2b..1dddd5d 100644
--- a/app/views/tournaments/index.html.erb
+++ b/app/views/tournaments/index.html.erb
@@ -10,8 +10,6 @@
<th>Max players per team</th>
<th>Min teams per match</th>
<th>Max teams per match</th>
- <th>Set rounds</th>
- <th>Randomized teams</th>
<th>Sampling method</th>
<th>Scoring method</th>
<th></th>
@@ -30,8 +28,6 @@
<td><%= tournament.max_players_per_team %></td>
<td><%= tournament.min_teams_per_match %></td>
<td><%= tournament.max_teams_per_match %></td>
- <td><%= tournament.set_rounds %></td>
- <td><%= tournament.randomized_teams %></td>
<td><%= tournament.sampling_method %></td>
<td><%= tournament.scoring_method %></td>
<td><%= link_to 'Show', tournament %></td>
diff --git a/app/views/tournaments/index.json.jbuilder b/app/views/tournaments/index.json.jbuilder
index bd86e04..c6b9e68 100644
--- a/app/views/tournaments/index.json.jbuilder
+++ b/app/views/tournaments/index.json.jbuilder
@@ -1,4 +1,4 @@
json.array!(@tournaments) do |tournament|
- json.extract! tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method, :scoring_method
+ json.extract! tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method
json.url tournament_url(tournament, format: :json)
end
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index f91e11e..f407295 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -36,16 +36,6 @@
</p>
<p>
- <strong>Set rounds:</strong>
- <%= @tournament.set_rounds %>
-</p>
-
-<p>
- <strong>Randomized teams:</strong>
- <%= @tournament.randomized_teams %>
-</p>
-
-<p>
<strong>Sampling method:</strong>
<%= @tournament.sampling_method %>
</p>
diff --git a/app/views/tournaments/show.json.jbuilder b/app/views/tournaments/show.json.jbuilder
index ff82412..afc5814 100644
--- a/app/views/tournaments/show.json.jbuilder
+++ b/app/views/tournaments/show.json.jbuilder
@@ -1 +1 @@
-json.extract! @tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :set_rounds, :randomized_teams, :sampling_method, :scoring_method, :created_at, :updated_at
+json.extract! @tournament, :id, :game_id, :status, :name, :min_players_per_team, :max_players_per_team, :min_teams_per_match, :max_teams_per_match, :sampling_method, :scoring_method, :created_at, :updated_at