From 89e0718188e4f6554998c518046a0fe5e94bf456 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 7 May 2014 19:49:25 -0700 Subject: fix url_for with classes --- actionview/lib/action_view/routing_url_for.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/routing_url_for.rb b/actionview/lib/action_view/routing_url_for.rb index 782f1865d6..6907239e1c 100644 --- a/actionview/lib/action_view/routing_url_for.rb +++ b/actionview/lib/action_view/routing_url_for.rb @@ -86,7 +86,7 @@ module ActionView when Array polymorphic_path(options, options.extract_options!) when Class - method = class_path_helper_call options + method, = class_path_helper_call options send method else method, args = model_path_helper_call options -- cgit v1.2.3