class Initializer
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
The Initializer is responsible for processing the Rails configuration, such as setting the $LOAD_PATH, requiring the right frameworks, initializing logging, and more. It can be run either as a single command that’ll just use the default configuration, like this:
Rails::Initializer.run
But normally it’s more interesting to pass in a custom configuration through the block running:
Rails::Initializer.run do |config| config.frameworks -= [ :action_mailer ] end
This will use the default configuration options from Rails::Configuration, but allow for overwriting on select areas.
Inherits from
Attributes
Methods (defined here)
- # add_gem_load_paths
- # add_plugin_load_paths
- # add_support_load_paths
- # after_initialize
- # check_gem_dependencies
- # check_ruby_version
- # disable_dependency_loading
- # initialize_cache
- # initialize_database
- # initialize_dependency_mechanism
- # initialize_encoding
- # initialize_framework_caches
- # initialize_framework_logging
- # initialize_framework_settings
- # initialize_framework_views
- # initialize_i18n
- # initialize_logger
- # initialize_routing
- # initialize_temporary_session_directory
- # initialize_time_zone
- # initialize_whiny_nils
- # install_gem_spec_stubs
- # load_application_classes
- # load_application_initializers
- # load_environment
- # load_gems
- # load_observers
- # load_plugins
- # load_view_paths
- # plugin_loader
- # prepare_dispatcher
- # process
- # require_frameworks
- # set_autoload_paths
- # set_load_path
- self. new
- self. run
Methods (inherited)
From Object (32)
- # acts_like?
- # app
- # blank?
- # class_eval
- # create
- # create_fixtures
- # duplicable?
- # edit
- # find_cmd
- # helper
- # index
- # instance_exec
- # instance_variable_defined?
- # instance_variable_names
- # message
- # metaclass
- # new_session
- # present?
- # reload!
- # returning
- # start_debugger
- # tail
- # to_json
- # to_param
- # to_query
- # unescape
- # update
- # with_options
- self. blank_slate_method_added
- self. find_hidden_method
- self. lookup_missing_generator
- self. method_added
From ActionController::Caching (3)
- # cache
- self. cache_configured?
- self. cache_store=
From ActionController::Cookies (2)
From ActionController::Flash (1)
- self. included
From ActionController::RecordIdentifier (5)
From ActionController::Rescue (7)
From ActionController::Streaming (2)
From ActionController::Translation (4)
From ActiveRecord::Callbacks (14)
From ActiveRecord::Dirty (4)
From ActiveRecord::Locking::Pessimistic (1)
- # lock!
From ActiveRecord::NamedScope (1)
- self. included
From ActiveRecord::Transactions (4)
From ActiveRecord::Validations (7)
From ActiveRecord::NamedScope::ClassMethods (2)
- # named_scope
- # scopes
From ActiveRecord::Validations::ClassMethods (13)
From ActiveSupport::Memoizable (1)
- # memoize