restpack-web 0.1.40 → 0.1.42

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.40"
3
+ VERSION = "0.1.42"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.40
4
+ version: 0.1.42
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: