box-o-sand/rails/map-mash/app/models/mash_tournament_round.rb

9 lines
255 B
Ruby

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