Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't require Rails.env in order to use AR::Tasks::DatabaseTasks | Piotr Sarnacki | 2013-04-24 | 1 | -0/+1 |
| | |||||
* | Use DatabaseTasks.fixtures_path instead of FIXTURES_PATH in db.rake | Piotr Sarnacki | 2013-04-24 | 1 | -0/+1 |
| | | | | | | This will allow to set fixtures path in global config easier, it should be not needed to use FIXTURES_PATH every time user wants to load fixtures. | ||||
* | Don't require having Rails.application to run database tasks | Piotr Sarnacki | 2013-04-24 | 1 | -0/+12 |
| | |||||
* | MOAR cleanups. | Vipul A M | 2013-03-14 | 1 | -3/+3 |
| | |||||
* | Remove hard coded references to Active Record in railties | José Valim | 2013-03-02 | 1 | -1/+1 |
| | |||||
* | remove AR auto-explain (config.auto_explain_threshold_in_seconds) | Yves Senn | 2013-02-24 | 1 | -9/+13 |
| | | | | | | | | | | We discussed that the auto explain feature is rarely used. This PR removes only the automatic explain. You can still display the explain output for any given relation using `ActiveRecord::Relation#explain`. As a side-effect this should also fix the connection problem during asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie` forced a connection. | ||||
* | standardize database_configuration to a hash | Terence Lee | 2013-02-21 | 1 | -3/+1 |
| | | | | | | | make connection_url_to_hash a class method This als prevents loading database.yml if it doesn't exist but DATABASE_URL does | ||||
* | Point to guides.rubyonrails.org instead of edgeguides.rubyonrails.org | Santiago Pastorino | 2012-12-30 | 1 | -2/+2 |
| | |||||
* | Fix typo in the Observers deprecation message. [ci skip] | Lucas Mazza | 2012-11-28 | 1 | -1/+1 |
| | |||||
* | Gracefully handle upgrading apps with observers | Rafael Mendonça França | 2012-11-28 | 1 | -0/+12 |
| | | | | | | Rather than just raising a NoMethodError when copying the config, this commit adds a warning message until either the rails-observers gem is installed or the relevant config options are removed. | ||||
* | Remove observers and sweepers | Rafael Mendonça França | 2012-11-28 | 1 | -10/+0 |
| | | | | | | | | They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik] | ||||
* | Don't run explain on slow queries for database adapters that don't support it | Blake Smith | 2012-11-26 | 1 | -0/+7 |
| | |||||
* | only clear caches if we are actually connected to the database | Aaron Patterson | 2012-11-12 | 1 | -2/+4 |
| | |||||
* | Gracefully handle upgrading apps with mass assigment configs | Andrew White | 2012-11-09 | 1 | -0/+27 |
| | | | | | | | | Most apps upgrading from 3.x will have options for mass assigment in their application.rb and environments/*.rb config files. Rather than just raising a NoMethodError when copying the config, this commit adds a warning message until either the protected_attributes gem is installed or the relevant config options are removed. | ||||
* | Remove ActiveRecord::Model | Jon Leighton | 2012-10-26 | 1 | -6/+5 |
| | | | | | | | | | | In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced. | ||||
* | Should use app.paths instead of specific path. | kennyj | 2012-10-08 | 1 | -1/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-09-28 | 1 | -2/+2 |
|\ | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/asset_tag_helper.rb | ||||
| * | nodoc AR::Railtie [ci skip] | Francesco Rodriguez | 2012-09-21 | 1 | -2/+2 |
| | | |||||
* | | make clear that expired db/schema_cache.dump are ignored | Xavier Noria | 2012-09-24 | 1 | -1/+1 |
|/ | |||||
* | 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 |
| | |