aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railtie.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix #5847 and #4045. Load AR::Base before loading an application model.kennyj2012-04-261-0/+5
|
* DATABASE_URL allows omission of database.ymlTim Pope2012-04-031-1/+3
|
* use File.binread to pull in the schema cacheAaron Patterson2012-04-031-1/+1
|
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-5/+0
|
* Support judgement expired schema cache dump.kennyj2012-03-011-1/+5
|
* Load db/schema_cache.dump duaring boot time.kennyj2012-03-011-1/+12
|
* pushed broadcasting down to a moduleAaron Patterson2012-01-201-2/+1
|
* restored logging to the log file and display on the consoleAaron Patterson2012-01-201-1/+3
|
* Moved all the logger methods to active support loggerKarunakar (Ruby)2012-01-061-1/+1
| | | | minor
* Avoid deprecation warningJon Leighton2011-12-281-1/+1
|
* Clean up the cache before the request in case we are running in the ↵José Valim2011-12-151-5/+13
| | | | reload_classes_only_on_change schema.
* FileUpdateChecker should be able to handle deleted files.José Valim2011-12-131-2/+1
|
* Speed up development by only reloading classes if dependencies files changed.José Valim2011-12-121-0/+5
| | | | | | | | This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
* Allow rescue responses to be configured through a railtie.José Valim2011-12-011-0/+7
|
* Everyone receives app as argument for consistency.José Valim2011-05-251-2/+2
|
* Move sandbox to AR and pass the sandbox as a value. This way, other ORMs ↵José Valim2011-05-041-1/+2
| | | | like Datamapper can also have their own sandboxing in rails console.
* Remove defined?(ActiveRecord) and use the railtie hook instead.José Valim2011-05-041-3/+4
|
* added config.active_record.whitelist_attributes which creates an empty ↵Josh Kalderimis2011-04-241-0/+3
| | | | whitelist of attributes available for mass assignment for all models in your app
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * allow AR caches to be cleared, clear them on class reloadingAaron Patterson2011-02-031-0/+1
| |
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-201-6/+4
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * Small changes on AD::Reloader.José Valim2010-12-201-1/+1
| |
| * 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>
| * Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepareJohn Firebaugh2010-12-201-1/+1
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | "there is no need to store this option just for initialization" José Valim ↵Emilio Tagua2010-11-191-5/+5
| | | | | | | | dixit.
* | Read from config, because AR may not be loaded yet.Emilio Tagua2010-11-191-1/+1
| |
* | Don't load IdentityMap middleware if not enabled. Simplify middleware.Emilio Tagua2010-11-191-3/+5
| |
* | Use IdentityMap middleware to flush map on each request.Emilio Tagua2010-11-191-0/+3
|/
* Use application's generators defaults as engine defaults to not force users ↵Piotr Sarnacki2010-11-021-1/+1
| | | | to manually set it
* Added config.app_generators to allow configuring application's generators ↵Piotr Sarnacki2010-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from railties. 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
* Revert "Just add connection management middleware if running in a concurrent ↵Jeremy Kemper2010-08-201-8/+5
| | | | | | environment." This reverts commit 6b29dc876fe185881d46731c3ae170478a3828fe.
* Add console hook to force ActiveRecord::Base to be loaded when console ↵José Valim2010-07-181-0/+6
| | | | starts avoiding reference loops.
* Just add connection management middleware if running in a concurrent ↵José Valim2010-07-121-5/+8
| | | | environment.
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-241-3/+0
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Merge remote branch 'rails/master'Xavier Noria2010-06-201-1/+0
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * Clear DescendantsTracker on each request.José Valim2010-06-191-1/+0
| |
* | Adds basic description and title.Rizwan Reza2010-06-161-0/+1
|/
* Reorganized initializers a bit to enable better hooks for common cases ↵wycats2010-05-151-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é Valim2010-04-291-7/+2
| | | | state:resolved].
* Move observers initialization to after_config blocks, they are still being ↵José Valim2010-04-201-13/+9
| | | | initialized to early (before load paths are being set).
* Split the observer railtie into two phases.Michael Koziarski2010-04-161-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 thatwycats2010-03-291-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é Valim2010-03-261-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,wycats2010-03-071-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::LogSubscriberPrem Sichanugrist2010-02-161-2/+2
|
* Rationalize railtie dependencies: AC uses AV; AR uses AMo; and Rails always ↵Jeremy Kemper2010-02-041-2/+4
| | | | uses AS.
* Drop AR I18n deprecation and simple use errors.messages as fallback.José Valim2010-01-301-12/+0
|
* tsort-based dependency resolution for initializersPaul Rosania2010-01-291-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Move the ActiveRecord generator settings into the RailtieCarl Lerche2010-01-281-0/+3
|
* As first step setup the load path and lazy compare middlewares.José Valim2010-01-251-3/+3
|