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:
parent
1bc98b11f5
commit
c57e7239a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue