- 04 5月, 2011 2 次提交
-
-
由 José Valim 提交于
Move sandbox to AR and pass the sandbox as a value. This way, other ORMs like Datamapper can also have their own sandboxing in rails console.
-
由 José Valim 提交于
-
- 24 4月, 2011 1 次提交
-
-
由 Josh Kalderimis 提交于
added config.active_record.whitelist_attributes which creates an empty whitelist of attributes available for mass assignment for all models in your app
-
- 04 2月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 20 12月, 2010 3 次提交
-
-
由 José Valim 提交于
-
由 John Firebaugh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 John Firebaugh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 20 11月, 2010 4 次提交
-
-
由 Emilio Tagua 提交于
-
由 Emilio Tagua 提交于
-
由 Emilio Tagua 提交于
-
由 Emilio Tagua 提交于
-
- 03 11月, 2010 1 次提交
-
-
由 Piotr Sarnacki 提交于
-
- 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 1 次提交
-
-
由 José Valim 提交于
-