aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/routing_url_for.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-08 11:49:02 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-12 15:54:45 -0700
commit74a6ad2c6b612eb58f7fac7522eb9bed9e92d133 (patch)
tree03a1588e50e436468521c9df2b7e2bdb505e9f8f /actionview/lib/action_view/routing_url_for.rb
parent56ff626560c4c430e065bc3a6d149d89c88f4272 (diff)
downloadrails-74a6ad2c6b612eb58f7fac7522eb9bed9e92d133.tar.gz
rails-74a6ad2c6b612eb58f7fac7522eb9bed9e92d133.tar.bz2
rails-74a6ad2c6b612eb58f7fac7522eb9bed9e92d133.zip
undo optimized calls until the builder object is finished
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