diff options
author | Azul <azul@leap.se> | 2012-11-04 21:01:27 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-04 21:01:27 +0100 |
commit | e1fc3f4850ee73e0591bd67a92b104db4f63e4cb (patch) | |
tree | 1207ce14cb1c2551a3fda09e7c670cc97182a0f6 /users/app | |
parent | c0f92bf9f481463dcaef6f4b30343130a8910a00 (diff) |
stubbing current_user the warden way
Diffstat (limited to 'users/app')
-rw-r--r-- | users/app/controllers/controller_extension/authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/controller_extension/authentication.rb b/users/app/controllers/controller_extension/authentication.rb index 50cf0d1..0408b77 100644 --- a/users/app/controllers/controller_extension/authentication.rb +++ b/users/app/controllers/controller_extension/authentication.rb @@ -8,7 +8,7 @@ module ControllerExtension::Authentication end def current_user - @current_user ||= env['warden'].user + @current_user ||= request.env['warden'].user end def logged_in? |