diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2017-03-05 21:32:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-05 21:32:18 -0500 |
commit | 99e4ed78b90c9df76b5444edf61575e2bfab1f85 (patch) | |
tree | 821a2e0a49b532e3458f14be8fca72a8b0da3728 | |
parent | d731d6366ae68c790ef79ff66b2d2d41f5767cc3 (diff) | |
parent | 0c1ff4243e40ff7535bfd348efa1888733599ab0 (diff) | |
download | rails-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]
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
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 |