aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorOlivier Lacan <hi@olivierlacan.com>2018-04-01 16:19:43 +0200
committerOlivier Lacan <hi@olivierlacan.com>2018-04-01 17:37:12 +0200
commita07562599e7d5336fb8d3191c33524631d63479d (patch)
tree8eb0bed64833033896ae2f6951a6e147b263eb03 /actionview/lib/action_view/helpers/url_helper.rb
parent2c56d6324b224f3782c4da5e7ffae528293b09aa (diff)
downloadrails-a07562599e7d5336fb8d3191c33524631d63479d.tar.gz
rails-a07562599e7d5336fb8d3191c33524631d63479d.tar.bz2
rails-a07562599e7d5336fb8d3191c33524631d63479d.zip
Use consistent spacing in actionview helper docs [ci skip]
The spacing in these comments is fairly inconsistent. Array argument contents are often separated with a space from the array literal brackets but in several cases the Hash literal curly braces are tangent to their contents which makes the documentation harder to read in some cases.
Diffstat (limited to 'actionview/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/url_helper.rb2
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 889562c478..cae62f2312 100644
--- a/actionview/lib/action_view/helpers/url_helper.rb
+++ b/actionview/lib/action_view/helpers/url_helper.rb
@@ -636,7 +636,7 @@ module ActionView
# to_form_params(name: 'David', nationality: 'Danish')
# # => [{name: :name, value: 'David'}, {name: 'nationality', value: 'Danish'}]
#
- # to_form_params(country: {name: 'Denmark'})
+ # to_form_params(country: { name: 'Denmark' })
# # => [{name: 'country[name]', value: 'Denmark'}]
#
# to_form_params(countries: ['Denmark', 'Sweden']})