restpack-web 0.1.39 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/app.rb +1 -1
- data/lib/restpack-web/context.rb +2 -1
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
data/lib/restpack-web/context.rb
CHANGED
@@ -3,12 +3,13 @@ require 'public_suffix'
|
|
3
3
|
module RestPack
|
4
4
|
module Web
|
5
5
|
class Context
|
6
|
-
attr_accessor :domain, :application, :channel, :user, :user_id
|
6
|
+
attr_accessor :domain, :application, :channel, :user, :user_id, :request
|
7
7
|
|
8
8
|
def initialize(env)
|
9
9
|
restpack = env[:restpack]
|
10
10
|
|
11
11
|
if restpack
|
12
|
+
@request = restpack[:request]
|
12
13
|
@domain = restpack[:domain]
|
13
14
|
@application = restpack[:application]
|
14
15
|
@channel = restpack[:channel]
|
data/lib/restpack-web/version.rb
CHANGED