restpack-web 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/context.rb +29 -1
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/context.rb
CHANGED
@@ -57,7 +57,35 @@ module RestPack
|
|
57
57
|
#### User:
|
58
58
|
|
59
59
|
* **is authenticated**: #{is_authenticated?}
|
60
|
-
|
60
|
+
|
61
|
+
#### Channel:
|
62
|
+
|
63
|
+
* **id**: #{channel.id}
|
64
|
+
* **name**: #{channel.name}
|
65
|
+
* **applications**: #{@restpack.channel.applications.map { |a| a.name }}
|
66
|
+
|
67
|
+
#### Application:
|
68
|
+
|
69
|
+
* **id**: #{application.id}
|
70
|
+
* **name**: #{application.name}
|
71
|
+
* **domains**: #{application.domains.map { |a| a.host }}
|
72
|
+
|
73
|
+
#### Domain:
|
74
|
+
|
75
|
+
* **id**: #{domain.id}
|
76
|
+
* **host**: #{domain.host}
|
77
|
+
|
78
|
+
#### Configuration:
|
79
|
+
|
80
|
+
* **keys**: #{configurations.map { |c| c.key }}
|
81
|
+
|
82
|
+
|
83
|
+
#### Authentication:
|
84
|
+
|
85
|
+
* **logout**: #{logout_url}
|
86
|
+
* **twitter oauth**: #{login_url(:twitter)}
|
87
|
+
* **google oauth**: #{login_url(:google_oauth2)}
|
88
|
+
}
|
61
89
|
end
|
62
90
|
end
|
63
91
|
end
|
data/lib/restpack-web/version.rb
CHANGED