From c57e7239a8b82957bcb07534cb7c1a3dcef71864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 22 Feb 2016 12:40:32 -0300 Subject: Do not pass more options that are needed. We only need action and method so pass them explicitly instead of merging the hash with HTML options. --- actionview/lib/action_view/helpers/url_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib') diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index 234e489115..2454ed4ed4 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -312,7 +312,7 @@ module ActionView form_options[:'data-remote'] = true if remote request_token_tag = if form_method == 'post' - token_tag(nil, form_options: form_options.merge(method: method)) + token_tag(nil, form_options: { action: url, method: method }) else '' end -- cgit v1.2.3