summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-24 18:41:53 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-24 18:41:53 -0400
commitc38a00c8fbc549d1ec45834ee05b19a38d2dd246 (patch)
tree3d533c241f4881d3b6e338caf5a5e8928d0fb574 /app/controllers/matches_controller.rb
parent76ee2a59964be6707cab25053697a2d848bbcd52 (diff)
TOMER WE ADDED YOUR DESIRED 5 TEAM SEED
Diffstat (limited to 'app/controllers/matches_controller.rb')
-rw-r--r--app/controllers/matches_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index 1ad86d0..138cf28 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -23,8 +23,8 @@ class MatchesController < ApplicationController
@match.teams.each do |team|
team.users.each do |user|
- players_id.push(user.remote_usernames[0]["json_value"]["id"])
- players.push(user.remote_usernames[0]["json_value"]["id"])
+ players_id.push(user.remote_usernames[0].value["id"])
+ players.push(user.remote_usernames[0].value["name"])
end
end