method
new
v2.3.8 -
Show latest stable
- Class:
Rails::Configuration
new()public
Create a new Configuration instance, initialized with the default values.
# File railties/lib/initializer.rb, line 838
def initialize
set_root_path!
self.frameworks = default_frameworks
self.load_paths = default_load_paths
self.load_once_paths = default_load_once_paths
self.eager_load_paths = default_eager_load_paths
self.log_path = default_log_path
self.log_level = default_log_level
self.view_path = default_view_path
self.controller_paths = default_controller_paths
self.preload_frameworks = default_preload_frameworks
self.cache_classes = default_cache_classes
self.dependency_loading = default_dependency_loading
self.whiny_nils = default_whiny_nils
self.plugins = default_plugins
self.plugin_paths = default_plugin_paths
self.plugin_locators = default_plugin_locators
self.plugin_loader = default_plugin_loader
self.database_configuration_file = default_database_configuration_file
self.routes_configuration_file = default_routes_configuration_file
self.gems = default_gems
self.i18n = default_i18n
for framework in default_frameworks
self.send("#{framework}=", Rails::OrderedOptions.new)
end
self.active_support = Rails::OrderedOptions.new
end Related methods
- Instance methods
- after_initialize
- after_initialize_blocks
- breakpoint_server
- breakpoint_server=
- builtin_directories
- database_configuration
- environment
- environment_path
- framework_paths
- gem
- middleware
- plugins=
- reload_plugins?
- set_root_path!
- threadsafe!
- to_prepare
- Class methods
- new
- Private methods
-
default_cache_classes -
default_cache_store -
default_controller_paths -
default_database_configuration_file -
default_dependency_loading -
default_eager_load_paths -
default_frameworks -
default_gems -
default_i18n -
default_load_once_paths -
default_load_paths -
default_log_level -
default_log_path -
default_plugin_loader -
default_plugin_locators -
default_plugin_paths -
default_plugins -
default_preload_frameworks -
default_routes_configuration_file -
default_view_path -
default_whiny_nils -
framework_root_path