restpack-web 0.2.16 → 0.2.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/app.rb +1 -1
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
@@ -53,7 +53,7 @@ module RestPack
|
|
53
53
|
url = "http://:1234@localhost:1112/api/v1/users/#{user_id}.json" #TODO: GJ: build from config
|
54
54
|
p url
|
55
55
|
json = RestClient.get(url)
|
56
|
-
user = Yajl::Parser.parse(json, :symbolize_keys => true)[
|
56
|
+
user = Yajl::Parser.parse(json, :symbolize_keys => true)[:user]
|
57
57
|
|
58
58
|
env[:restpack][:user] = user
|
59
59
|
end
|
data/lib/restpack-web/version.rb
CHANGED