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