Re-namespacing a bit to clear out some fairly old stuff from the top level
This commit is contained in:
13
oldstuff/map-mash/app/models/mash.rb
Normal file
13
oldstuff/map-mash/app/models/mash.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class Mash < ActiveRecord::Base
|
||||
belongs_to :map_a, :class_name => 'Map'
|
||||
belongs_to :map_b, :class_name => 'Map'
|
||||
belongs_to :winner, :class_name => 'Map'
|
||||
has_one :tournament, :class_name => 'MashTournament'
|
||||
has_one :round, :class_name => 'MashTournamentRound'
|
||||
|
||||
named_scope :unplayed, :conditions => [%{
|
||||
winner_id IS NULL
|
||||
AND map_a_id IS NOT NULL
|
||||
AND map_b_id IS NOT NULL
|
||||
}]
|
||||
end
|
||||
Reference in New Issue
Block a user