diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-22 12:40:32 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-22 12:41:30 -0300 |
commit | c57e7239a8b82957bcb07534cb7c1a3dcef71864 (patch) | |
tree | f12146f2e8f6466e6cb582d3e0d752737351019c | |
parent | 1bc98b11f5c471c54453e196942bd88bcc704c90 (diff) | |
download | rails-c57e7239a8b82957bcb07534cb7c1a3dcef71864.tar.gz rails-c57e7239a8b82957bcb07534cb7c1a3dcef71864.tar.bz2 rails-c57e7239a8b82957bcb07534cb7c1a3dcef71864.zip |
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.
-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 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 |