class method self.new

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.new()

Create a new Configuration instance, initialized with the default values.

Source
# File railties/lib/initializer.rb, line 859
    def initialize
      set_root_path!

      self.frameworks                   = default_frameworks
      self.autoload_paths               = default_autoload_paths
      self.autoload_once_paths          = default_autoload_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

Defined in railties/lib/initializer.rb line 859 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Configuration

Type at least 2 characters to search.

↑↓ navigate · open · esc close