lib/restpack_web/context.rb in restpack_web-0.2.20 vs lib/restpack_web/context.rb in restpack_web-0.2.21
- old
+ new
@@ -1,15 +1,16 @@
require 'public_suffix'
module RestPack
module Web
class Context
- attr_accessor :domain, :application, :channel, :configurations, :user, :user_id
+ attr_accessor :request, :domain, :application, :channel, :configurations, :user, :user_id
def initialize(env)
restpack = env[:restpack]
if restpack
+ @request = restpack[:request]
@domain = restpack[:domain]
@application = restpack[:application]
@channel = restpack[:channel]
@configurations = restpack[:configurations]
@user = restpack[:user]