restpack-web 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/app.rb +6 -1
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
@@ -17,7 +17,12 @@ module RestPack
|
|
17
17
|
|
18
18
|
env["restpack"][:host] = host
|
19
19
|
begin #TODO: GJ: cache should handle errors gracefully
|
20
|
-
|
20
|
+
channel = @core_cache.get_channel(host)
|
21
|
+
domain = channel.get_domain_by_identifier(host)
|
22
|
+
|
23
|
+
env["restpack"][:channel] = channel
|
24
|
+
env["restpack"][:application] = domain.application
|
25
|
+
env["restpack"][:domain] = domain
|
21
26
|
rescue Exception => e
|
22
27
|
p e.message
|
23
28
|
p e.backtrace.inspect
|
data/lib/restpack-web/version.rb
CHANGED