You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
255 B
9 lines
255 B
13 years ago
|
class MashTournamentRound < ActiveRecord::Base
|
||
|
belongs_to :tournament, :class_name => 'MashTournament'
|
||
|
has_many :mashes
|
||
|
|
||
|
def self.for_round(tournament, round_number)
|
||
|
self.find_by_mash_tournament_id_and_number(tournament, round_number)
|
||
|
end
|
||
|
end
|