aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application/configuration.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Move AD::Cascade to the bottom of the middleware stack.José Valim2010-05-161-2/+2
|
* Reorganized initializers a bit to enable better hooks for common cases ↵wycats2010-05-151-1/+1
| | | | | | | | | | | | | | | without the need for Railtie. Specifically, the following hooks were added: * before_configuration: this hook is run immediately after the Application class comes into existence, but before the user has added any configuration. This is the appropriate place to set configuration for your plugin * before_initialize: This is run after all of the user's configuration has completed, but before any initializers have begun (in other words, it runs right after config/environments/{development,production,test}.rb) * after_initialize: This is run after all of the initializers have run. It is an appropriate place for forking in a preforking setup Each of these hooks may be used via ActiveSupport.on_load(name) { }. In all these cases, the context inside the block will be the Application object. This means that for simple cases, you can use these hooks without needing to create a Railtie.
* Add missing deprecation requiresJeremy Kemper2010-04-291-0/+1
|
* ActiveRecord middlewares should be inserted before AD::Cascade [#4493 ↵José Valim2010-04-291-1/+1
| | | | state:resolved].
* The rake task :environment now loads config/environment.rb instead of ↵José Valim2010-04-291-8/+9
| | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-2/+2
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* Replace 'RAILS_ROOT' to 'Rails.root' and 'RAILS_ENV' to 'Rails.env' in ↵Anil Wadghule2010-04-121-1/+1
| | | | significant places.
* Fix a bug in ActionDispatch::Static where Rails cannot find assets if ↵José Valim2010-04-081-1/+1
| | | | started in another directory which is not the RAILS_ROOT.
* Alleviate the pain in working with utf8 templates by setting a default encoding.José Valim2010-04-071-7/+15
|
* Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-051-2/+3
| | | | configuration in request.env. This is another step forward removing global configuration.
* Raise exceptions instead of rendering error templates in test environment ↵Rolf Bjaanes2010-04-021-1/+1
| | | | | | [#4315 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Move application configuration to the application configuration object, ↵José Valim2010-03-261-2/+53
| | | | remove railtie_name and engine_name and allow to set the configuration object.
* Move railties/builtin into libJoshua Peek2010-03-201-2/+2
|
* Move middlewares to the Application level. If you want to modify the ↵Carlhuda2010-03-081-0/+4
| | | | middleware, either use Rails.application.config.middleware or modify it in an initializer (if you need to set it relative to user-specified middleware).
* Have log subscribers subscribe to the actual events, so the subscriber ↵Carlhuda2010-03-021-2/+11
| | | | doesn't subscribe to *every* event, so we can have events that are slow-ish but are not actually run in production.
* Deprecate AC configuration values which were moved to Rack.José Valim2010-02-011-2/+4
|
* Add reloadable specific for engines and move environment to application paths.José Valim2010-01-281-5/+4
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Move configuration to subfolders.José Valim2010-01-231-0/+85