diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-03-06 23:08:42 -0500 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-03-06 23:08:42 -0500 |
commit | 501e305de609313809b2641522679c17834c603f (patch) | |
tree | 068ab7dd64db6e5b9c8441073a0e4db338fd6e89 /app/controllers | |
parent | 3ce5876375cbb3057ffc96e2886ba57cbd875dc9 (diff) |
Fixed the registration in the tourney model and fixed a lint int the controller.
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 3583ec3..5155a4f 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -40,7 +40,7 @@ class TournamentsController < ApplicationController @tournament = Tournament.new(tournament_params) respond_to do |format| if @tournament.save - @tournament.hosts.push(current_user) + #@tournament.hosts.push(current_user) format.html { redirect_to @tournament, notice: 'Tournament was successfully created.' } format.json { render action: 'show', status: :created, location: @tournament } else |