restpack-web 0.1.40 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/restpack-web/app.rb +0 -19
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
|
@@ -25,8 +25,6 @@ module RestPack
|
|
|
25
25
|
host = env["SERVER_NAME"]
|
|
26
26
|
env[:restpack][:host] = host
|
|
27
27
|
|
|
28
|
-
#{request.protocol}#{request.host_with_port}#{request.fullpath}
|
|
29
|
-
|
|
30
28
|
channel = @core_cache.get_channel(host)
|
|
31
29
|
domain = channel.get_domain_by_host(host)
|
|
32
30
|
|
|
@@ -36,8 +34,6 @@ module RestPack
|
|
|
36
34
|
|
|
37
35
|
add_user env
|
|
38
36
|
|
|
39
|
-
add_application_domains env
|
|
40
|
-
|
|
41
37
|
rescue Exception => e
|
|
42
38
|
p "---"
|
|
43
39
|
p e.message
|
|
@@ -64,21 +60,6 @@ module RestPack
|
|
|
64
60
|
env[:restpack][:user_id] = user_id
|
|
65
61
|
end
|
|
66
62
|
|
|
67
|
-
def add_application_domains(env) #TODO: gj move to controller mixin
|
|
68
|
-
application = env[:restpack][:application]
|
|
69
|
-
|
|
70
|
-
domains = {}
|
|
71
|
-
|
|
72
|
-
configured_domains = application.get_configuration_by_key('domains')
|
|
73
|
-
|
|
74
|
-
if configured_domains
|
|
75
|
-
for key in configured_domains.value.keys
|
|
76
|
-
domains[key] = configured_domains.value[key]
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
env[:restpack][:application_domains] = domains
|
|
81
|
-
end
|
|
82
63
|
end
|
|
83
64
|
end
|
|
84
65
|
end
|
data/lib/restpack-web/version.rb
CHANGED