From 47bb545740937d50b72e0d1c420fcba4e64d6760 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 30 Apr 2014 15:38:26 -0400 Subject: Add #owned_by? to the models that didn't have it (when appropriate) --- app/models/match.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/match.rb') diff --git a/app/models/match.rb b/app/models/match.rb index ed21f78..f1c32fe 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -14,6 +14,10 @@ class Match < ActiveRecord::Base # winner:references # not validated + def owned_by?(user) + self.tournament_stage.owned_by?(user) + end + ## # Returns whether or not all the statistics have been collected # such that the match may be considered finished. -- cgit v1.2.3-54-g00ecf