diff options
Diffstat (limited to 'app/controllers/pages_controller.rb')
-rw-r--r-- | app/controllers/pages_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index db52b95..390c74d 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -1,6 +1,5 @@ class PagesController < ApplicationController def index - @players = Player.all end def teampicker @@ -11,7 +10,7 @@ class PagesController < ApplicationController private def maketeams - r = Player.where(strikes: 0...3).order(Arel.sql("RANDOM()")).to_a + r = Player.order(Arel.sql("RANDOM()")).to_a teams = [] while r.size > 0 |