rails--rails/actionpack/lib/abstract_controller
John Hawthorn d6ca73306c Force _routes to be redefined on re-inclusion
This fixes an regression where _routes were set incorrectly when the
inheritance chain went from one route namespace (isolated engine or main
app) to another and then back to the original. Because the url_helpers
module was being cached and was being re-included this was not setting
_routes.

This commit solves the issue by detecting that case and redefining
_routes in that case. We could have always performed the redefinition,
but it's a pretty uncommon case, so we might as well only do it when
necessary.
2021-02-16 11:55:22 -08:00
..
caching Remove unused code 2019-01-30 14:29:17 +00:00
railties Force _routes to be redefined on re-inclusion 2021-02-16 11:55:22 -08:00
asset_paths.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
base.rb Shorten inspect on AbstractController::Base 2020-09-05 19:37:31 +02:00
caching.rb Follow up fa986ae0ca 2020-02-05 14:31:11 +09:00
callbacks.rb Only compute :only and :except callback conditions once 2020-04-06 11:51:30 +02:00
collector.rb Enable `Layout/EmptyLinesAroundAccessModifier` cop 2019-06-13 12:00:45 +09:00
error.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
helpers.rb Avoid creating helper modules until modified 2020-09-08 16:55:53 -07:00
logger.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
rendering.rb Make _protected_ivars private 2020-04-07 12:45:19 -04:00
translation.rb Remove `require "active_support/core_ext/symbol/starts_ends_with"` 2021-02-09 22:31:09 +09:00
url_for.rb Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00