diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-08 11:49:02 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-12 15:54:45 -0700 |
commit | 74a6ad2c6b612eb58f7fac7522eb9bed9e92d133 (patch) | |
tree | 03a1588e50e436468521c9df2b7e2bdb505e9f8f /actionview | |
parent | 56ff626560c4c430e065bc3a6d149d89c88f4272 (diff) | |
download | rails-74a6ad2c6b612eb58f7fac7522eb9bed9e92d133.tar.gz rails-74a6ad2c6b612eb58f7fac7522eb9bed9e92d133.tar.bz2 rails-74a6ad2c6b612eb58f7fac7522eb9bed9e92d133.zip |
undo optimized calls until the builder object is finished
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/routing_url_for.rb | 7 |
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 |