diff options
author | Andrey Ognevsky <a.ognevsky@gmail.com> | 2013-11-13 00:18:36 +0400 |
---|---|---|
committer | Andrey Ognevsky <a.ognevsky@gmail.com> | 2013-11-15 15:50:42 +0400 |
commit | d04c4fac3bb6f75ba15704dd03faeb5f2d7033f7 (patch) | |
tree | 9f3ac29a96684d6a9b4eb4002f87e34ee5588c3d /actionpack/lib/action_dispatch/routing | |
parent | 77ed4d98a7147fcfa1c340385f767a0010abe82a (diff) | |
download | rails-d04c4fac3bb6f75ba15704dd03faeb5f2d7033f7.tar.gz rails-d04c4fac3bb6f75ba15704dd03faeb5f2d7033f7.tar.bz2 rails-d04c4fac3bb6f75ba15704dd03faeb5f2d7033f7.zip |
Take Hash with options inside Array in #url_for
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index bcebe532bf..4a0ef40873 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -155,6 +155,8 @@ module ActionDispatch _routes.url_for(options.symbolize_keys.reverse_merge!(url_options)) when String options + when Array + polymorphic_url(options, options.extract_options!) else polymorphic_url(options) end |