aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2017-03-05 21:32:18 -0500
committerGitHub <noreply@github.com>2017-03-05 21:32:18 -0500
commit99e4ed78b90c9df76b5444edf61575e2bfab1f85 (patch)
tree821a2e0a49b532e3458f14be8fca72a8b0da3728 /actionpack/lib
parentd731d6366ae68c790ef79ff66b2d2d41f5767cc3 (diff)
parent0c1ff4243e40ff7535bfd348efa1888733599ab0 (diff)
downloadrails-99e4ed78b90c9df76b5444edf61575e2bfab1f85.tar.gz
rails-99e4ed78b90c9df76b5444edf61575e2bfab1f85.tar.bz2
rails-99e4ed78b90c9df76b5444edf61575e2bfab1f85.zip
Merge pull request #28301 from y-yagi/fix_direct_with_params_example
Fix `direct` with params example [ci skip]
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index 6e06c70dc2..dea6c4482e 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -2054,7 +2054,7 @@ module ActionDispatch
# your url helper definition, e.g:
#
# direct :browse, page: 1, size: 10 do |options|
- # [ :products, options.merge(params.permit(:page, :size)) ]
+ # [ :products, options.merge(params.permit(:page, :size).to_h.symbolize_keys) ]
# end
#
# In this instance the `params` object comes from the context in which the the