Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Not sure why Request#session is missing

  • Loading branch information...
commit 1850aea7fc9a1353de8e87adadf5230269b358c1 1 parent f7d7dc5
@jeremy jeremy authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 actionpack/lib/action_dispatch/http/request.rb
View
8 actionpack/lib/action_dispatch/http/request.rb
@@ -451,6 +451,14 @@ def body_stream #:nodoc:
@env['rack.input']
end
+ def session
+ @env['rack.session']
+ end
+
+ def session_options
+ @env['rack.session.options']
+ end
+
def reset_session
self.session_options.delete(:id)
self.session = {}

1 comment on commit 1850aea

@josh
Collaborator

session and session_options are on Rack::Request as of 1.0

Please sign in to comment.
Something went wrong with that request. Please try again.