Prev | Current Page 113 | Next

Brad Ediger

"Advanced Rails"


* ActionPack = ActionController + ActionView.
RailTies | 77
13. initialize_temporary_directories: Sets ActionController??™s temporary session
and cache directories if they exist in the filesystem.
14. initialize_framework_settings: Transforms the framework-specific configuration
settings into method calls on the frameworks??™ Base classes. For example,
consider the configuration option:
config.active_record.schema_format = :sql
The config.active_record object is an instance of Rails::OrderedOptions, which
is basically an ordered hash (ordered to keep the configuration directives in
order). During initialization, the initialize_framework_settings method transforms
it into the following:
ActiveRecord::Base.schema_format = :sql
This offers the advantage that the Configuration object doesn??™t have to be
updated every time a framework adds or changes a configuration option.
15. add_support_load_paths: Adds load paths for support functions. This function is
currently empty.
16. load_plugins: Loads the plugins from paths in the plugin_paths configuration
item (default vendor/plugins). If a plugins configuration item is specified, load
those plugins respecting that load order. Plugins are loaded close to the end of
the process so that they can override any already loaded component.
17. load_observers: Instantiates ActiveRecord observers. This is done after plugins
so that plugins have an opportunity to modify the observer classes.


Pages:
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125