From d04c4fac3bb6f75ba15704dd03faeb5f2d7033f7 Mon Sep 17 00:00:00 2001 From: Andrey Ognevsky Date: Wed, 13 Nov 2013 00:18:36 +0400 Subject: Take Hash with options inside Array in #url_for --- actionview/lib/action_view/routing_url_for.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionview') 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 -- cgit v1.2.3