diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-30 15:38:26 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-30 15:38:26 -0400 |
commit | 47bb545740937d50b72e0d1c420fcba4e64d6760 (patch) | |
tree | 886e361d01b1cdab7d3e8afed40eb76c6791ddfb /app/models/bracket_match.rb | |
parent | f1b2a1f25b839237ff1791ffc4586bc466409874 (diff) |
Add #owned_by? to the models that didn't have it (when appropriate)
Diffstat (limited to 'app/models/bracket_match.rb')
-rw-r--r-- | app/models/bracket_match.rb | 4 |
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 |