diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-24 18:41:53 -0400 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-24 18:41:53 -0400 |
commit | c38a00c8fbc549d1ec45834ee05b19a38d2dd246 (patch) | |
tree | 3d533c241f4881d3b6e338caf5a5e8928d0fb574 /app/controllers | |
parent | 76ee2a59964be6707cab25053697a2d848bbcd52 (diff) |
TOMER WE ADDED YOUR DESIRED 5 TEAM SEED
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/matches_controller.rb | 4 |
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 |