Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | removed warning: shadowing outer local variable | Arun Agrawal | 2012-09-09 | 1 | -1/+1 | |
| | ||||||
* | Get rid of config.preload_frameworks in favor of config.eager_load_namespaces | José Valim | 2012-08-21 | 1 | -0/+3 | |
| | | | | | | | The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly. | |||||
* | The use_schema_cache_dump configuration moved to ActiveRecord. | kennyj | 2012-08-02 | 1 | -15/+21 | |
| | ||||||
* | Fix observers with AR::Model | Jon Leighton | 2012-06-15 | 1 | -3/+4 | |
| | ||||||
* | Fix config.active_record.whitelist_attributes with AR::Model | Jon Leighton | 2012-06-15 | 1 | -3/+0 | |
| | ||||||
* | Simplify AR configuration code. | Jon Leighton | 2012-06-15 | 1 | -2/+2 | |
| | | | | | Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc. | |||||
* | refactor | Jon Leighton | 2012-06-15 | 1 | -11/+5 | |
| | ||||||
* | raise error for pending migration | schneems | 2012-06-09 | 1 | -0/+7 | |
| | | | can be configured by setting config.active_record.migration. Setting to :page_load will raise an error on each page refresh if there are migrations that are pending. Setting to :page_load is defaulted in development for new applications. | |||||
* | Fix #5847 and #4045 on master. | kennyj | 2012-05-30 | 1 | -0/+2 | |
| | ||||||
* | Use runner hook to load ActiveRecord::Base. | kennyj | 2012-05-30 | 1 | -0/+4 | |
| | ||||||
* | Revert "Merge pull request #5995 from kennyj/fix_5847-3" | José Valim | 2012-04-27 | 1 | -5/+0 | |
| | | | | | | | | Active Record should be lazy loaded and this pull request forced Active Record to always be loaded after initialization. This reverts commit 8cd14c0bc9f9429f03d1181912355d2f48b98157, reversing changes made to 2f0c8c52e66f1a2a3d1c00efc207f227124e96c2. | |||||
* | Fix #5847 and #4045. Load AR::Base before loading an application model. | kennyj | 2012-04-26 | 1 | -0/+5 | |
| | ||||||
* | DATABASE_URL allows omission of database.yml | Tim Pope | 2012-04-03 | 1 | -1/+3 | |
| | ||||||
* | use File.binread to pull in the schema cache | Aaron Patterson | 2012-04-03 | 1 | -1/+1 | |
| | ||||||
* | Remove IdentityMap | Carlos Antonio da Silva | 2012-03-13 | 1 | -5/+0 | |
| | ||||||
* | Support judgement expired schema cache dump. | kennyj | 2012-03-01 | 1 | -1/+5 | |
| | ||||||
* | Load db/schema_cache.dump duaring boot time. | kennyj | 2012-03-01 | 1 | -1/+12 | |
| | ||||||
* | pushed broadcasting down to a module | Aaron Patterson | 2012-01-20 | 1 | -2/+1 | |
| | ||||||
* | restored logging to the log file and display on the console | Aaron Patterson | 2012-01-20 | 1 | -1/+3 | |
| | ||||||
* | Moved all the logger methods to active support logger | Karunakar (Ruby) | 2012-01-06 | 1 | -1/+1 | |
| | | | | minor | |||||
* | Avoid deprecation warning | Jon Leighton | 2011-12-28 | 1 | -1/+1 | |
| | ||||||
* | Clean up the cache before the request in case we are running in the ↵ | José Valim | 2011-12-15 | 1 | -5/+13 | |
| | | | | reload_classes_only_on_change schema. | |||||
* | FileUpdateChecker should be able to handle deleted files. | José Valim | 2011-12-13 | 1 | -2/+1 | |
| | ||||||
* | Speed up development by only reloading classes if dependencies files changed. | José Valim | 2011-12-12 | 1 | -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é Valim | 2011-12-01 | 1 | -0/+7 | |
| | ||||||
* | Everyone receives app as argument for consistency. | José Valim | 2011-05-25 | 1 | -2/+2 | |
| | ||||||
* | Move sandbox to AR and pass the sandbox as a value. This way, other ORMs ↵ | José Valim | 2011-05-04 | 1 | -1/+2 | |
| | | | | like Datamapper can also have their own sandboxing in rails console. | |||||
* | Remove defined?(ActiveRecord) and use the railtie hook instead. | José Valim | 2011-05-04 | 1 | -3/+4 | |
| | ||||||
* | added config.active_record.whitelist_attributes which creates an empty ↵ | Josh Kalderimis | 2011-04-24 | 1 | -0/+3 | |
| | | | | whitelist of attributes available for mass assignment for all models in your app | |||||
* | Merge remote branch 'rails/master' into identity_map | Emilio Tagua | 2011-02-15 | 1 | -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 reloading | Aaron Patterson | 2011-02-03 | 1 | -0/+1 | |
| | | ||||||
* | | Merge remote branch 'rails/master' into identity_map | Emilio Tagua | 2010-12-20 | 1 | -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é Valim | 2010-12-20 | 1 | -1/+1 | |
| | | ||||||
| * | Use AD::Reloader.to_cleanup for reloading [#2873 state:resolved] | John Firebaugh | 2010-12-20 | 1 | -5/+3 | |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepare | John Firebaugh | 2010-12-20 | 1 | -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 Tagua | 2010-11-19 | 1 | -5/+5 | |
| | | | | | | | | dixit. | |||||
* | | Read from config, because AR may not be loaded yet. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 | |
| | | ||||||
* | | Don't load IdentityMap middleware if not enabled. Simplify middleware. | Emilio Tagua | 2010-11-19 | 1 | -3/+5 | |
| | | ||||||
* | | Use IdentityMap middleware to flush map on each request. | Emilio Tagua | 2010-11-19 | 1 | -0/+3 | |
|/ | ||||||
* | Use application's generators defaults as engine defaults to not force users ↵ | Piotr Sarnacki | 2010-11-02 | 1 | -1/+1 | |
| | | | | to manually set it | |||||
* | Added config.app_generators to allow configuring application's generators ↵ | Piotr Sarnacki | 2010-09-30 | 1 | -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 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]. |