From 63a665823b8f05bf0b3a9acf9b18cc01252951fb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 25 Apr 2014 11:03:55 -0400 Subject: Touch up s/scores/statistics/ --- app/models/match.rb | 2 +- app/models/user.rb | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'app/models') diff --git a/app/models/match.rb b/app/models/match.rb index 20a36a5..9045d67 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -1,6 +1,6 @@ class Match < ActiveRecord::Base belongs_to :tournament_stage - has_many :scores + has_many :statistics has_and_belongs_to_many :teams belongs_to :winner, class_name: "Team" diff --git a/app/models/user.rb b/app/models/user.rb index e5ae7ea..5aca8a6 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -23,10 +23,6 @@ class User < ActiveRecord::Base self.permissions ||= Server.first.default_user_permissions end - def scores - self.statistics.find_by_name(:score) - end - def find_remote_username(game) obj = self.remote_usernames.where(:game => game).first if obj.nil? -- cgit v1.2.3-2-g168b