summaryrefslogtreecommitdiff
path: root/app/models/tournament.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-24 16:58:57 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-24 17:02:00 -0400
commit992dc06e50d74aca79ed58d868be6113e3ebe55c (patch)
tree0948a09823694597f49265a2ff8a3a724e5bbcc5 /app/models/tournament.rb
parent6de6d3508fdd945168f8f74072af94b3754c9386 (diff)
do away with stages_ordered
Diffstat (limited to 'app/models/tournament.rb')
-rw-r--r--app/models/tournament.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/tournament.rb b/app/models/tournament.rb
index e21ccb1..caa711c 100644
--- a/app/models/tournament.rb
+++ b/app/models/tournament.rb
@@ -5,16 +5,6 @@ class Tournament < ActiveRecord::Base
has_and_belongs_to_many :players, class_name: "User", association_foreign_key: "player_id", join_table: "players_tournaments"
has_and_belongs_to_many :hosts, class_name: "User", association_foreign_key: "host_id", join_table: "hosts_tournaments"
- def stages_ordered
- h = {}
- i = 1
- self.tournament_stages.order(:id).each do |s|
- h[i] = s
- i += 1
- end
- return h
- end
-
def settings
@settings ||= Settings.new(self)
end