Ruby on Rails latest stable (v7.1.3.2) - 0 notes

Module deprecated or moved

This module is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

Much of the slow performance from routes comes from the complexity of expiry, :requirements matching, defaults providing and figuring out which url pattern to use. With named routes we can avoid the expense of finding the right route. So if they’ve provided the right number of arguments, and have no :requirements, we can just build up a string and return it.

To support building optimisations for other common cases, the generation code is separated into several classes

Constants

OPTIMISERS = [PositionalArguments, PositionalArgumentsWithAdditionalParams]

Attributes

Show files where this module is defined (1 file)
Register or log in to add new notes.