Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #14469 from tiegz/timestamp_inheritance_fix | Rafael Mendonça França | 2014-03-27 | 1 | -1/+1 |
| | | | | Swap Timestamp/Callbacks order in ActiveRecord::Base | ||||
* | put core at the beginning so other classes can modify the behavior | Keenan Brock | 2014-01-22 | 1 | -1/+1 |
| | |||||
* | Remove deprecated cattr_* requires | Genadi Samokovarov | 2013-12-03 | 1 | -1/+1 |
| | |||||
* | add #no_touching on ActiveRecord models | Damien Mathieu | 2013-11-13 | 1 | -0/+1 |
| | |||||
* | Added ActiveRecord::Base#enum for declaring enum attributes where the values ↵ | David Heinemeier Hansson | 2013-11-02 | 1 | -0/+1 |
| | | | | map to integers in the database, but can be queried by name | ||||
* | move the cache to the AR models and populate it on inherited | Aaron Patterson | 2013-08-30 | 1 | -0/+2 |
| | |||||
* | Prefer find_by over dynamic finders in rdoc | Sam Ruby | 2013-04-02 | 1 | -3/+3 |
| | |||||
* | Remove useless number sign | Tatsuro Baba | 2013-01-18 | 1 | -2/+2 |
| | | | | I think that these signs are probably mistake. | ||||
* | find_or_initialize_by is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -7/+0 |
| | |||||
* | find_or_create_by is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -25/+0 |
| | |||||
* | find_last_by is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -4/+3 |
| | |||||
* | find_all_by is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -6/+3 |
| | |||||
* | scoped_by is deprecated in AR 4 | Akira Matsuda | 2013-01-02 | 1 | -6/+0 |
| | |||||
* | Added STI support to init and building associations | Jason Rush | 2012-11-29 | 1 | -0/+1 |
| | | | | | | | | Allows you to do BaseClass.new(:type => "SubClass") as well as parent.children.build(:type => "SubClass") or parent.build_child to initialize an STI subclass. Ensures that the class name is a valid class and that it is in the ancestors of the super class that the association is expecting. | ||||
* | Remove observers and sweepers | Rafael Mendonça França | 2012-11-28 | 1 | -2/+0 |
| | | | | | | | | They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik] | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-17 | 1 | -19/+19 |
|\ | | | | | | | | | Conflicts: actionpack/lib/action_dispatch/routing/redirection.rb | ||||
| * | 1.9 hash syntax changes | AvnerCohen | 2012-11-08 | 1 | -19/+19 |
| | | |||||
* | | Remove duplicated ConnectionHandling extension in AR::Base | Carlos Antonio da Silva | 2012-11-11 | 1 | -1/+0 |
| | | | | | | | | | | Thanks @toretore. https://github.com/rails/rails/commit/9e4c41c903e8e58721f2c41776a8c60ddba7a0a9#commitcomment-2134706 | ||||
* | | Remove not used indifferent_access requires from Base and FinderMethods | Carlos Antonio da Silva | 2012-11-07 | 1 | -1/+0 |
|/ | |||||
* | Remove ActiveRecord::Model | Jon Leighton | 2012-10-26 | 1 | -3/+43 |
| | | | | | | | | | | 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. | ||||
* | Revert "Get rid of the ActiveRecord::Model::DeprecationProxy thing." | Jeremy Kemper | 2012-10-20 | 1 | -2/+2 |
| | | | | This reverts commit 83846838252397b3781eed165ca301e05db39293. | ||||
* | Get rid of the ActiveRecord::Model::DeprecationProxy thing. | Jon Leighton | 2012-10-19 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | I think it's going to be too much pain to try to transition the :active_record load hook from executing against Base to executing against Model. For example, after Model is included in Base, and modules included in Model will no longer get added to the ancestors of Base. So plugins which wish to be compatible with both Model and Base should use the :active_record_model load hook which executes *before* Base gets loaded. In general, ActiveRecord::Model is an advanced feature at the moment and probably most people will continue to inherit from ActiveRecord::Base for the time being. | ||||
* | Make ActiveRecord::Model::DeprecationProxy work better | Jon Leighton | 2012-08-03 | 1 | -1/+1 |
| | | | | Closes #6600 | ||||
* | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/module/delegation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/class/attribute in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | more edits [ci skip] | Vijay Dev | 2012-05-01 | 1 | -1/+1 |
| | |||||
* | add ActiveRecord::RecordInvalid to exceptions | Hrvoje Šimić | 2012-04-30 | 1 | -9/+10 |
| | | | | sort the exception names alphabetically | ||||
* | fix markup error [ci skip] | Vijay Dev | 2012-04-08 | 1 | -1/+1 |
| | |||||
* | Add documentation for find_or_create_by_{attribute}! method. | Andrew White | 2012-03-12 | 1 | -0/+3 |
| | |||||
* | deleted duplicated line | juan david pastas | 2012-01-05 | 1 | -1/+0 |
| | |||||
* | No need to require psych since require yaml does that. | Rafael Mendonça França | 2012-01-04 | 1 | -1/+0 |
| | |||||
* | No need to use rescue block to require psych | Rafael Mendonça França | 2012-01-04 | 1 | -5/+1 |
| | |||||
* | Support establishing connection on ActiveRecord::Model. | Jon Leighton | 2011-12-28 | 1 | -1/+0 |
| | | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base. | ||||
* | Support configuration on ActiveRecord::Model. | Jon Leighton | 2011-12-28 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | The problem: We need to be able to specify configuration in a way that can be inherited to models that include ActiveRecord::Model. So it is no longer sufficient to put 'top level' config on ActiveRecord::Base, but we do want configuration specified on ActiveRecord::Base and descendants to continue to work. So we need something like class_attribute that can be defined on a module but that is inherited when ActiveRecord::Model is included. The solution: added ActiveModel::Configuration module which provides a config_attribute macro. It's a bit specific hence I am not putting this in Active Support or making it a 'public API' at present. | ||||
* | Fix position of load hook so that Base has been defined and included Model ↵ | Jon Leighton | 2011-12-24 | 1 | -0/+3 |
| | | | | before it runs | ||||
* | Deal with global config better between AR::Base and AR::Model | Jon Leighton | 2011-12-24 | 1 | -1/+0 |
| | |||||
* | I herd you like modules. | Jon Leighton | 2011-12-24 | 1 | -0/+2 |
| | |||||
* | Start work towards making AR include-able. | Jon Leighton | 2011-12-24 | 1 | -369/+1 |
| | |||||
* | Remove 1.8 backport | Jon Leighton | 2011-12-22 | 1 | -9/+0 |
| | |||||
* | Make read_attribute code path accessible at the class level | Jon Leighton | 2011-12-22 | 1 | -6/+3 |
| | |||||
* | AS::Concern is not really needed for AR::Explain | Xavier Noria | 2011-12-16 | 1 | -1/+1 |
| | |||||
* | Move DefaultScope and NamedScope under Scoping | Jon Leighton | 2011-12-15 | 1 | -2/+1 |
| | |||||
* | Let AttributeMethods do its own including etc | Jon Leighton | 2011-12-15 | 1 | -17/+0 |
| | |||||
* | Split out most of the AR::Base code into separate modules :cake: | Jon Leighton | 2011-12-15 | 1 | -1578/+58 |
| | |||||
* | Make with_scope public so we stop using send :bomb: | José Valim | 2011-12-15 | 1 | -90/+91 |
| | |||||
* | Allow nested attributes in associations to update values in it's owner ↵ | Andrew Kaspick | 2011-12-14 | 1 | -1/+11 |
| | | | | object. Fixes a regression from 3.0.x | ||||
* | Cache column defaults on model. ~30% on Model.new due to avoiding repeatedly ↵ | Jon Leighton | 2011-12-14 | 1 | -2/+2 |
| | | | | fetching connection. | ||||
* | Use `table_exists?` from the schema cache. | Aaron Patterson | 2011-12-09 | 1 | -1/+1 |
| |