aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application/bootstrap.rb
Commit message (Collapse)AuthorAgeFilesLines
* ADdd missing requires (thanks to @arunagw)José Valim2011-05-071-1/+1
|
* Always flush logger at exitJason Rudolph2011-05-061-0/+1
| | | | | | | | | | | | | | Prior to this change, running code via script/runner would demonstrate different logging behavior than running the same code via a rake task. In production mode the script/runner approach would always flush the logger, but the rake-based approach would not automatically flush the logger. This discrepancy violates the principle of least surprise, and it could lead to the loss of important production logging data. This change removes special-case code in the "runner" command, and replaces it with a general solution to ensure that the logger gets flushed at exit. This solution works for "runner", "console", "server", rake tasks, and any other process that loads the Rails environment.
* Use AD::Reloader.to_cleanup for reloading [#2873 state:resolved]John Firebaugh2010-12-201-5/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-1/+1
| | | | method_missing.
* Allow Engines loading its own environment file from config/environmentsPiotr Sarnacki2010-09-031-5/+2
|
* Clear DescendantsTracker on each request.José Valim2010-06-191-0/+2
|
* Remove the laziness from the middleware stack.José Valim2010-05-291-1/+1
|
* Reorganized initializers a bit to enable better hooks for common cases ↵wycats2010-05-151-4/+4
| | | | | | | | | | | | | | | 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.
* The rake task :environment now loads config/environment.rb instead of ↵José Valim2010-04-291-1/+2
| | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
* Moved initializers for ActionMailer and ActionController into their own railtiesCarlhuda2010-03-021-14/+2
|
* Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-161-4/+4
|
* Ensure all initializers are collections.José Valim2010-01-261-21/+21
|
* As first step setup the load path and lazy compare middlewares.José Valim2010-01-251-0/+4
|
* Ensure environment config has higher priority than application ones.José Valim2010-01-241-0/+4
|
* Break application.rb file in smaller chunks.José Valim2010-01-231-0/+77