aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/assertions.rb
diff options
context:
space:
mode:
authorWilson Bilkovich <wilsonb@gmail.com>2017-06-30 15:53:32 -0700
committerWilson Bilkovich <wilsonb@gmail.com>2017-06-30 15:53:32 -0700
commit250bc33233a253d58581b9ab58f4fc0b8dca5b15 (patch)
tree25525ef8350817447c90ffe73736755706be2adf /activesupport/lib/active_support/testing/assertions.rb
parentb38c370b0cbb6df0ba934d98311b3c7b1877429e (diff)
downloadrails-250bc33233a253d58581b9ab58f4fc0b8dca5b15.tar.gz
rails-250bc33233a253d58581b9ab58f4fc0b8dca5b15.tar.bz2
rails-250bc33233a253d58581b9ab58f4fc0b8dca5b15.zip
Properly register "custom" URL helpers as named helpers.
CustomUrlHelpers were introduced in ce7d5fb2e6, closing issue #22512. They currently register themselves in an ivar that is never accessed. This change removes the @custom_helpers special-case, and registers them the way named routes are normally handled. Without this, you can get route_defined?(:example_url) == false, while still being able to call url_helpers.example_url and example_path. Various popular gems such as 'rspec-rails' make use of route_defined?() when determining how to proxy method calls or whether to define a route.
Diffstat (limited to 'activesupport/lib/active_support/testing/assertions.rb')
0 files changed, 0 insertions, 0 deletions