diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-02-22 00:21:46 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-02-22 19:22:11 +0530 |
commit | 2b4c0ae144768d72f042b2c2ec1bca4df386fb6f (patch) | |
tree | 58c5e452497429563c3ba499ac49d05b4dcfd192 /actionview | |
parent | 92203d754f535c01c5ec3175627425d20e3d2839 (diff) | |
download | rails-2b4c0ae144768d72f042b2c2ec1bca4df386fb6f.tar.gz rails-2b4c0ae144768d72f042b2c2ec1bca4df386fb6f.tar.bz2 rails-2b4c0ae144768d72f042b2c2ec1bca4df386fb6f.zip |
Refactored Request Forgery CSRF PerFormTokensController tests and DRY'ed them up.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/url_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index 4d82cbd469..234e489115 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -311,7 +311,7 @@ module ActionView form_options[:action] = url form_options[:'data-remote'] = true if remote - request_token_tag = if (form_method == 'post' || method == 'delete') + request_token_tag = if form_method == 'post' token_tag(nil, form_options: form_options.merge(method: method)) else '' |