aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/routing_url_for.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/lib/action_view/routing_url_for.rb')
-rw-r--r--actionview/lib/action_view/routing_url_for.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/actionview/lib/action_view/routing_url_for.rb b/actionview/lib/action_view/routing_url_for.rb
index 6907239e1c..b04edff840 100644
--- a/actionview/lib/action_view/routing_url_for.rb
+++ b/actionview/lib/action_view/routing_url_for.rb
@@ -86,11 +86,10 @@ module ActionView
when Array
polymorphic_path(options, options.extract_options!)
when Class
- method, = class_path_helper_call options
- send method
+ polymorphic_path(options, {})
else
- method, args = model_path_helper_call options
- send(method, *args)
+ raise
+ polymorphic_path(options, {})
end
end