From 49ba2710e9fa01c2bedaf306552fae6f3301a119 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 29 Aug 2015 18:11:36 -0700 Subject: add a method for getting the http auth salt --- actionpack/lib/action_dispatch/http/request.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib/action_dispatch/http') diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 7276c57d28..45600d0a61 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -158,6 +158,10 @@ module ActionDispatch set_header('action_controller.instance'.freeze, controller) end + def http_auth_salt + get_header "action_dispatch.http_auth_salt" + end + def show_exceptions? # :nodoc: # We're treating `nil` as "unset", and we want the default setting to be # `true`. This logic should be extracted to `env_config` and calculated -- cgit v1.2.3