diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-24 19:06:48 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-24 19:06:48 -0400 |
commit | afaf547a9685be8fd15c4496c3c1716e717b3fd7 (patch) | |
tree | 8c3e4c5b8a3accab6ec25dc956e27f37b44ccb8f /app/controllers/matches_controller.rb | |
parent | c909eb46740a1daeaf8fac1d60d0e4539f01e342 (diff) | |
parent | 1b11684986136ee87da6242c3ba6aba5ef581510 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/controllers/matches_controller.rb')
-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 |