From f69fcc28596700c1a875068b7cb616d6eb40e6df Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 7 Mar 2014 01:25:12 -0500 Subject: It is 1:30 AM --- app/models/match.rb | 2 +- app/models/tournament.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/models') diff --git a/app/models/match.rb b/app/models/match.rb index 7dacae5..782dce8 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -3,6 +3,6 @@ class Match < ActiveRecord::Base has_and_belongs_to_many :teams - belongs_to :winner + belongs_to :winner, class_name: "Team" end diff --git a/app/models/tournament.rb b/app/models/tournament.rb index ead9205..79d8b24 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -16,7 +16,7 @@ class Tournament < ActiveRecord::Base unless joinable_by?(user) return false end - players<