diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-26 18:26:06 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-26 18:26:06 -0700 |
commit | 1850aea7fc9a1353de8e87adadf5230269b358c1 (patch) | |
tree | 8868b3d33b638bbf122e40001af3c4cd419c9367 /actionpack/lib | |
parent | f7d7dc5aa8a5facc357ed291819db23e3f3df9b6 (diff) | |
download | rails-1850aea7fc9a1353de8e87adadf5230269b358c1.tar.gz rails-1850aea7fc9a1353de8e87adadf5230269b358c1.tar.bz2 rails-1850aea7fc9a1353de8e87adadf5230269b358c1.zip |
Not sure why Request#session is missing
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_dispatch/http/request.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 2602b344ca..0b8909ced7 100755 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -451,6 +451,14 @@ EOM @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 = {} |