Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Revert "Just add connection management middleware if running in a concurrent ↵ | Jeremy Kemper | 2010-08-20 | 1 | -8/+5 | |
| | | | | | | environment." This reverts commit 6b29dc876fe185881d46731c3ae170478a3828fe. | |||||
* | Add console hook to force ActiveRecord::Base to be loaded when console ↵ | José Valim | 2010-07-18 | 1 | -0/+6 | |
| | | | | starts avoiding reference loops. | |||||
* | Just add connection management middleware if running in a concurrent ↵ | José Valim | 2010-07-12 | 1 | -5/+8 | |
| | | | | environment. | |||||
* | Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵ | José Valim | 2010-06-24 | 1 | -3/+0 | |
| | | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] | |||||
* | Merge remote branch 'rails/master' | Xavier Noria | 2010-06-20 | 1 | -1/+0 | |
|\ | | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb | |||||
| * | Clear DescendantsTracker on each request. | José Valim | 2010-06-19 | 1 | -1/+0 | |
| | | ||||||
* | | Adds basic description and title. | Rizwan Reza | 2010-06-16 | 1 | -0/+1 | |
|/ | ||||||
* | Reorganized initializers a bit to enable better hooks for common cases ↵ | wycats | 2010-05-15 | 1 | -9/+8 | |
| | | | | | | | | | | | | | | | 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. | |||||
* | ActiveRecord middlewares should be inserted before AD::Cascade [#4493 ↵ | José Valim | 2010-04-29 | 1 | -7/+2 | |
| | | | | state:resolved]. | |||||
* | Move observers initialization to after_config blocks, they are still being ↵ | José Valim | 2010-04-20 | 1 | -13/+9 | |
| | | | | initialized to early (before load paths are being set). | |||||
* | Split the observer railtie into two phases. | Michael Koziarski | 2010-04-16 | 1 | -3/+7 | |
| | | | | Observers observing models with scopes defined will require the connection to be established. | |||||
* | Replace the placeholder base_hook API with on_load. To specify some code that | wycats | 2010-03-29 | 1 | -8/+8 | |
| | | | | | | | | should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end | |||||
* | Move application configuration to the application configuration object, ↵ | José Valim | 2010-03-26 | 1 | -3/+2 | |
| | | | | remove railtie_name and engine_name and allow to set the configuration object. | |||||
* | Make many parts of Rails lazy. In order to facilitate this, | wycats | 2010-03-07 | 1 | -15/+27 | |
| | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook | |||||
* | Rename Rails::Subscriber to Rails::LogSubscriber | Prem Sichanugrist | 2010-02-16 | 1 | -2/+2 | |
| | ||||||
* | Rationalize railtie dependencies: AC uses AV; AR uses AMo; and Rails always ↵ | Jeremy Kemper | 2010-02-04 | 1 | -2/+4 | |
| | | | | uses AS. | |||||
* | Drop AR I18n deprecation and simple use errors.messages as fallback. | José Valim | 2010-01-30 | 1 | -12/+0 | |
| | ||||||
* | tsort-based dependency resolution for initializers | Paul Rosania | 2010-01-29 | 1 | -1/+1 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Move the ActiveRecord generator settings into the Railtie | Carl Lerche | 2010-01-28 | 1 | -0/+3 | |
| | ||||||
* | As first step setup the load path and lazy compare middlewares. | José Valim | 2010-01-25 | 1 | -3/+3 | |
| | ||||||
* | Add active_model/railtie back to generated boot.rb, add models back to ↵ | José Valim | 2010-01-25 | 1 | -5/+4 | |
| | | | | paths, load active_support/railtie since we need it and ensure default logger is set before config. | |||||
* | Rename plugin_name to railtie_name and engine_name. | José Valim | 2010-01-24 | 1 | -1/+1 | |
| | ||||||
* | Moved more configuration away from bootstrap. | José Valim | 2010-01-22 | 1 | -5/+5 | |
| | ||||||
* | Move Dispatcher setup to Railties and add instrumentation hook. | José Valim | 2010-01-15 | 1 | -0/+13 | |
| | ||||||
* | Move AR logging responsibilities to ActiveRecord::Railties::Subscriber. | José Valim | 2010-01-13 | 1 | -8/+4 | |
| | ||||||
* | Send the connection in AR notifications to avoid checking out new ↵ | José Valim | 2010-01-11 | 1 | -1/+1 | |
| | | | | connections in threads just for logging purposes. | |||||
* | Add a deprecation message to activerecord.errors. | José Valim | 2010-01-07 | 1 | -0/+11 | |
| | ||||||
* | Use underscore in notification namespaces. | José Valim | 2010-01-04 | 1 | -1/+1 | |
| | ||||||
* | Use namespaces in notifications. | José Valim | 2010-01-03 | 1 | -1/+1 | |
| | ||||||
* | Some railties cleanup: | Carl Lerche | 2009-12-31 | 1 | -0/+71 | |
* Rename <framework>/rails.rb -> <framework>/railtie.rb * Rails::Plugin -> Rails::Railtie * Rails::Plugin::Vendored -> Rails::Plugin |