Permalink
Browse files

fix url_for with classes

  • Loading branch information...
1 parent 4b8ab79 commit 89e0718188e4f6554998c518046a0fe5e94bf456 @tenderlove tenderlove committed May 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/lib/action_view/routing_url_for.rb
View
2 actionview/lib/action_view/routing_url_for.rb
@@ -86,7 +86,7 @@ def url_for(options = nil)
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

0 comments on commit 89e0718

Please sign in to comment.