![]() This should onlyīe set to false if application code is not thread safe. after_routes_loaded do # Code that does something with end Copy 3.2.4 config.allow_concurrencyĬontrols whether requests should be handled concurrently. ![]() Useful for configuring values set up by other initializers:Ĭonfig. Note that this block will be run for rake tasks. That includes the initialization of the framework itself, engines, and all the application's initializers in config/initializers. Takes a block which will be run after Rails has finished initializing the application. The lib directory is not affected by this flag, it is added to $LOAD_PATH always. The default value depends on the config.load_defaults target version: Starting with version Setting this to false saves Ruby from checking these directories when resolving require calls with relative paths, and saves Bootsnap work and RAM, since it does not need to build an index for them. Zeitwerk uses absolute paths internally, and applications running in :zeitwerk mode do not need require_dependency, so models, controllers, jobs, etc. It is recommended to be set to false in :zeitwerk mode early, in config/application.rb. Says whether autoload paths have to be added to $LOAD_PATH. 3.2.1 config.add_autoload_paths_to_load_path The following configuration methods are to be called on a Rails::Railtie object, such as a subclass of Rails::Engine or Rails::Application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |