aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/http_authentication.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2015-07-18 12:42:08 +0930
committerMatthew Draper <matthew@trebex.net>2015-07-18 12:42:08 +0930
commite78746fefdd1c5528a10ca23a5f40804ef855086 (patch)
treedeae317ebeca2cb20b57e9ad9a8c0c36720c8d7f /actionpack/lib/action_controller/metal/http_authentication.rb
parent0db98b3ec8226042a5c3400d594d803abb5b169f (diff)
parent8cb8ce98d903929342e2ca3a54a07ab5196baf93 (diff)
downloadrails-e78746fefdd1c5528a10ca23a5f40804ef855086.tar.gz
rails-e78746fefdd1c5528a10ca23a5f40804ef855086.tar.bz2
rails-e78746fefdd1c5528a10ca23a5f40804ef855086.zip
Merge pull request #20923 from sikachu/silence-render-text-warning
Stop using deprecated `render :text` in test
Diffstat (limited to 'actionpack/lib/action_controller/metal/http_authentication.rb')
-rw-r--r--actionpack/lib/action_controller/metal/http_authentication.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb
index 39bed955a4..032275ac64 100644
--- a/actionpack/lib/action_controller/metal/http_authentication.rb
+++ b/actionpack/lib/action_controller/metal/http_authentication.rb
@@ -502,7 +502,7 @@ module ActionController
def authentication_request(controller, realm, message = nil)
message ||= "HTTP Token: Access denied.\n"
controller.headers["WWW-Authenticate"] = %(Token realm="#{realm.tr('"'.freeze, "".freeze)}")
- controller.__send__ :render, :text => message, :status => :unauthorized
+ controller.__send__ :render, plain: message, status: :unauthorized
end
end
end