diff options
author | Zhang Kai Yu <yeannylam@gmail.com> | 2015-01-22 13:49:35 +0800 |
---|---|---|
committer | Zhang Kai Yu <yeannylam@gmail.com> | 2015-01-24 07:18:45 +0800 |
commit | 98277d1398fa55de25d0b50303ca12aaa061ab75 (patch) | |
tree | 83bb6e08d836f6280226e76a3335d682d769b049 /actionpack | |
parent | 3e02cdc8727bbc6e44f63292da549d405c16865e (diff) | |
download | rails-98277d1398fa55de25d0b50303ca12aaa061ab75.tar.gz rails-98277d1398fa55de25d0b50303ca12aaa061ab75.tar.bz2 rails-98277d1398fa55de25d0b50303ca12aaa061ab75.zip |
Fixed undefined method error when doing authentication.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index a219d35b25..20afcee537 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -106,11 +106,11 @@ module ActionController end def auth_scheme(request) - request.authorization.split(' ', 2).first + request.authorization.to_s.split(' ', 2).first end def auth_param(request) - request.authorization.split(' ', 2).second + request.authorization.to_s.split(' ', 2).second end def encode_credentials(user_name, password) |