summaryrefslogtreecommitdiff
path: root/app/models/bracket_match.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/bracket_match.rb')
-rw-r--r--app/models/bracket_match.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/bracket_match.rb b/app/models/bracket_match.rb
index f9a11f0..14a8002 100644
--- a/app/models/bracket_match.rb
+++ b/app/models/bracket_match.rb
@@ -3,5 +3,7 @@ class BracketMatch < ActiveRecord::Base
belongs_to :match
belongs_to :predicted_winner, class_name: "Team"
-
+ def owned_by?(user)
+ self.bracket.owned_by?(user)
+ end
end