aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxedconsulting.com>2016-01-20 14:40:34 +0000
committerAndrew White <andrew.white@unboxed.co>2017-02-21 15:30:46 +0000
commit31dc46cb9c8aa3e05dc955ae50ec53421951b4a5 (patch)
treeefbd45b034b330caf5e93a0d15325464d9c22329 /actionpack/test/dispatch/routing
parent658b5244356feba2b262e87d8b333c5a46999a5d (diff)
downloadrails-31dc46cb9c8aa3e05dc955ae50ec53421951b4a5.tar.gz
rails-31dc46cb9c8aa3e05dc955ae50ec53421951b4a5.tar.bz2
rails-31dc46cb9c8aa3e05dc955ae50ec53421951b4a5.zip
Wrap routes.url_helpers.url_for via a proxy
The singleton url_for on Rails.application.routes.url_helpers isn't the same as the url_for you get when you include the module in your class as the latter has support for polymorphic style routes, etc. whereas the former accepts only a hash and is the underlying implementation defined on ActionDispatch::Routing::RouteSet. This commit changes the singleton method to call through a proxy instance so that it gets the full range of features specified in the documentation for url_for.
Diffstat (limited to 'actionpack/test/dispatch/routing')
0 files changed, 0 insertions, 0 deletions