diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-07-18 16:15:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-18 16:15:16 -0400 |
commit | 5df23a04a31e95beb9a5728851345a68b3bca2ac (patch) | |
tree | ba4c9c4b366fa6a66a04c7fa453fad86036686fa /actionview/CHANGELOG.md | |
parent | 3c8c410012e34709f3fdfe5b6a571353b20d0c56 (diff) | |
parent | 113d8a2ba39da13840845bac3aa4f274a1dae19b (diff) | |
download | rails-5df23a04a31e95beb9a5728851345a68b3bca2ac.tar.gz rails-5df23a04a31e95beb9a5728851345a68b3bca2ac.tar.bz2 rails-5df23a04a31e95beb9a5728851345a68b3bca2ac.zip |
Merge pull request #31320 from gtqnchev/to_form_params-fix
Fix issue with `button_to`'s `to_form_params`
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r-- | actionview/CHANGELOG.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 7d3ca7735e..6d45cc1d8a 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,14 @@ +* Fix issue with `button_to`'s `to_form_params` + + `button_to` was throwing exception when invoked with `params` hash that + contains symbol and string keys. The reason for the exception was that + `to_form_params` was comparing the given symbol and string keys. + + The issue is fixed by turning all keys to strings inside + `to_form_params` before comparing them. + + *Georgi Georgiev* + * Mark arrays of translations as trusted safe by using the `_html` suffix. Example: |