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 /actionview/lib/action_view | |
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 'actionview/lib/action_view')
-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 |