- 30 9月, 2010 1 次提交
-
-
由 Piotr Sarnacki 提交于
With config.generators becomes a way to configure generators for current instance only. For example: module Blog class Engine < Rails::Engine config.generators do |g| g.orm :active_record end config.app_generators do |g| g.test_framework :rspec end end end such definition sets :active_record as orm for engine and :rspec as test_framework for application. The values set with app_generators can be overwritten in application using config.generators as you would normally do: module MyApp class Application < Rails::Application config.generators do |g| g.test_framework :test_unit end end end
-
- 21 8月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
This reverts commit 6b29dc87.
-
- 18 7月, 2010 1 次提交
-
-
由 José Valim 提交于
Add console hook to force ActiveRecord::Base to be loaded when console starts avoiding reference loops.
-
- 13 7月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 24 6月, 2010 1 次提交
-
-
由 José Valim 提交于
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
-
- 19 6月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 17 6月, 2010 1 次提交
-
-
由 Rizwan Reza 提交于
-
- 15 5月, 2010 1 次提交
-
-
由 wycats 提交于
Reorganized initializers a bit to enable better hooks for common cases 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.
-
- 29 4月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 21 4月, 2010 1 次提交
-
-
由 José Valim 提交于
Move observers initialization to after_config blocks, they are still being initialized to early (before load paths are being set).
-
- 16 4月, 2010 1 次提交
-
-
由 Michael Koziarski 提交于
Observers observing models with scopes defined will require the connection to be established.
-
- 30 3月, 2010 1 次提交
-
-
由 wycats 提交于
should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end
-
- 27 3月, 2010 1 次提交
-
-
由 José Valim 提交于
Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object.
-
- 07 3月, 2010 1 次提交
-
-
由 wycats 提交于
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
-
- 17 2月, 2010 1 次提交
-
-
由 Prem Sichanugrist 提交于
-
- 05 2月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 30 1月, 2010 2 次提交
-
-
由 José Valim 提交于
-
由 Paul Rosania 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 29 1月, 2010 1 次提交
-
-
由 Carl Lerche 提交于
-
- 26 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 25 1月, 2010 1 次提交
-
-
由 José Valim 提交于
Add active_model/railtie back to generated boot.rb, add models back to paths, load active_support/railtie since we need it and ensure default logger is set before config.
-
- 24 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 23 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 15 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 13 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 11 1月, 2010 1 次提交
-
-
由 José Valim 提交于
Send the connection in AR notifications to avoid checking out new connections in threads just for logging purposes.
-
- 07 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 04 1月, 2010 2 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
-
- 01 1月, 2010 3 次提交
-
-
由 Carl Lerche 提交于
* Rename <framework>/rails.rb -> <framework>/railtie.rb * Rails::Plugin -> Rails::Railtie * Rails::Plugin::Vendored -> Rails::Plugin
-
由 Carl Lerche 提交于
-
由 Carl Lerche 提交于
-
- 31 12月, 2009 2 次提交
-
-
由 Jeremy Kemper 提交于
This reverts commit 7e8b7f46. Conflicts: railties/lib/rails/plugin.rb
-
由 Jeremy Kemper 提交于
Fix up AR extension by using Railties module instead of Rails and requiring ControllerRuntime at initialization time instead of boot
-
- 30 12月, 2009 1 次提交
-
-
由 José Valim 提交于
-
- 29 12月, 2009 1 次提交
-
-
由 Carl Lerche 提交于
-
- 27 12月, 2009 2 次提交
-
-
由 José Valim 提交于
Remove ActiveRecord runtime logging from ActionPack and place in ActiveRecord, adding it through config.action_controller.include hook.
-
由 José Valim 提交于
Remove ActionView inline logging to ActiveSupport::Notifications and create ActionController::Base#log_event, so everything can be logged within one listener. Also expose log_process_action as a hook for different modules to include their own information during the action processing. This allow ActiveRecord to hook and any other ORM. Finally, this commit changes 'Processing' and 'Rendering' in logs to 'Processed' and 'Rendered' because at the point it's logged, everying already happened.
-
- 24 12月, 2009 2 次提交