1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/testing/assertions
Aaron Patterson 8dc784292b
Eagerly build the routing helper module after routes are committed
This commit eagerly builds the route helper module after the routes have
been drawn and finalized.  This allows us to cache the helper module but
not have to worry about people accessing the module while route
definition is "in-flight", and automatically deals with cache
invalidation as the module is regenerated anytime someone redraws the
routes.

The restriction this commit introduces is that the url helper module can
only be accessed *after* the routes are done being drawn.

Refs #24554 and #32892
2018-09-25 09:43:25 -07:00
..
response.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
routing.rb Eagerly build the routing helper module after routes are committed 2018-09-25 09:43:25 -07:00