1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Rafael Mendonça França 2016-02-22 12:40:32 -03:00
parent 1bc98b11f5
commit c57e7239a8

View file

@ -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