restpack-web 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/context.rb +3 -2
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/context.rb
CHANGED
@@ -50,13 +50,14 @@ module RestPack
|
|
50
50
|
"http://#{auth_domain}/auth/#{provider}?next=#{next_url}"
|
51
51
|
end
|
52
52
|
|
53
|
-
def debug_info
|
53
|
+
def debug_info #TODO: GJ: move to a mixin
|
54
54
|
user_debug_info = ""
|
55
55
|
if is_authenticated?
|
56
56
|
image_debug_info = ""
|
57
|
-
image_debug_info = " * **image** : #{@user['image']} ![Image](#{@user['image']}
|
57
|
+
image_debug_info = " * **image** : #{@user['image']} ![Image](#{@user['image']}" unless @user['image'].nil?
|
58
58
|
|
59
59
|
user_debug_info = %{
|
60
|
+
* **id** : #{@user['id']}
|
60
61
|
* **name** : #{@user['name']}
|
61
62
|
* **nickname** : #{@user['nickname']}
|
62
63
|
* **location** : #{@user['location']}
|
data/lib/restpack-web/version.rb
CHANGED