diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-11-15 04:00:19 -0800 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-11-15 04:00:19 -0800 |
commit | ce06d57e390c03cf5438410efc8345c60d961e05 (patch) | |
tree | 9f3ac29a96684d6a9b4eb4002f87e34ee5588c3d /actionview/lib | |
parent | 77ed4d98a7147fcfa1c340385f767a0010abe82a (diff) | |
parent | d04c4fac3bb6f75ba15704dd03faeb5f2d7033f7 (diff) | |
download | rails-ce06d57e390c03cf5438410efc8345c60d961e05.tar.gz rails-ce06d57e390c03cf5438410efc8345c60d961e05.tar.bz2 rails-ce06d57e390c03cf5438410efc8345c60d961e05.zip |
Merge pull request #9599 from ognevsky/hash-inside-array-in-url-for
Take Hash with options inside Array in #url_for
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/routing_url_for.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionview/lib/action_view/routing_url_for.rb b/actionview/lib/action_view/routing_url_for.rb index f10e7e88ba..33be06cbf7 100644 --- a/actionview/lib/action_view/routing_url_for.rb +++ b/actionview/lib/action_view/routing_url_for.rb @@ -83,6 +83,8 @@ module ActionView super when :back _back_url + when Array + polymorphic_path(options, options.extract_options!) else polymorphic_path(options) end |