diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-28 15:13:32 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-28 15:13:32 +0300 |
commit | 44781b6e9790d90b4f8b9a41d2b2c114b1a582ee (patch) | |
tree | aa55b3f69aee623a1088398f2bbb1f4b191f20a4 /actionpack/test/controller/request_forgery_protection_test.rb | |
parent | 7cc9754209c0ae00d70bdd629fa4a81a1c74cc6f (diff) | |
download | rails-44781b6e9790d90b4f8b9a41d2b2c114b1a582ee.tar.gz rails-44781b6e9790d90b4f8b9a41d2b2c114b1a582ee.tar.bz2 rails-44781b6e9790d90b4f8b9a41d2b2c114b1a582ee.zip |
Deprecate `:nothing` option for render method
`head` method works similar to `render` method with `:nothing` option
Diffstat (limited to 'actionpack/test/controller/request_forgery_protection_test.rb')
-rw-r--r-- | actionpack/test/controller/request_forgery_protection_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb index f8cf79a257..82c808754c 100644 --- a/actionpack/test/controller/request_forgery_protection_test.rb +++ b/actionpack/test/controller/request_forgery_protection_test.rb @@ -72,17 +72,17 @@ class RequestForgeryProtectionControllerUsingNullSession < ActionController::Bas def signed cookies.signed[:foo] = 'bar' - render :nothing => true + head :ok end def encrypted cookies.encrypted[:foo] = 'bar' - render :nothing => true + head :ok end def try_to_reset_session reset_session - render :nothing => true + head :ok end end |