summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/match.rb2
-rw-r--r--app/models/user.rb4
2 files changed, 1 insertions, 5 deletions
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?