Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixup guides in light of :dependent changes | Jon Leighton | 2012-08-10 | 1 | -7/+7 |
| | |||||
* | Remove the dependent_restrict_raises option. | Jon Leighton | 2012-08-10 | 1 | -11/+16 |
| | | | | | | | | | | | | | | | It's not really a good idea to have this as a global config option. We should allow people to specify the behaviour per association. There will now be two new values: * :dependent => :restrict_with_exception implements the current behaviour of :restrict. :restrict itself is deprecated in favour of :restrict_with_exception. * :dependent => :restrict_with_error implements the new behaviour - it adds an error to the owner if there are dependent records present See #4727 for the original discussion of this. | ||||
* | Update the docs to reflect the new association API | Jon Leighton | 2012-08-03 | 1 | -190/+80 |
| | |||||
* | 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 |
| | |||||
* | Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql." | Jon Leighton | 2012-08-01 | 1 | -0/+31 |
| | | | | | | | | | This reverts commit 3803fcce26b837c0117f7d278b83c366dc4ed370. Conflicts: activerecord/CHANGELOG.md It will be deprecated only in 4.0, and removed properly in 4.1. | ||||
* | Explaining a bit better about the default behaviour of dependent | Rodrigo Flores | 2012-07-28 | 1 | -1/+2 |
| | |||||
* | Missed extend for eager_autoload | Dmitry Vorotilin | 2012-07-26 | 1 | -0/+1 |
| | |||||
* | Merge pull request #7161 from ↵ | Jon Leighton | 2012-07-26 | 1 | -5/+7 |
|\ | | | | | | | | | michaelfairley/eager_load_active_record_association_helpers Eager autoload ActiveRecord association helpers | ||||
| * | Eager autoload ActiveRecord association helpers | Michael Fairley | 2012-07-25 | 1 | -5/+7 |
| | | |||||
* | | Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql. | Jon Leighton | 2012-07-20 | 1 | -31/+0 |
| | | |||||
* | | Avoid options ever being nil | Jon Leighton | 2012-07-20 | 1 | -4/+4 |
| | | | | | | | | This fixes active_record_deprecated_finders. | ||||
* | | Allow associations to take a lambda which builds the scope | Jon Leighton | 2012-07-13 | 1 | -8/+8 |
| | | |||||
* | | Mention effect of accepts_nested_attributes_for on association autosave ↵ | Chris Gunther | 2012-06-27 | 1 | -0/+8 |
| | | | | | | | | option [ci skip] | ||||
* | | Update AR has_one association example | Alexey Vakhov | 2012-05-16 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-04 | 1 | -8/+8 |
|\ \ | |||||
| * | | simpler wording and explanations | Hrvoje Šimić | 2012-05-01 | 1 | -8/+8 |
| | | | |||||
* | | | Change the example for habtm association to use proc according to changelog | Alexander Zubkov | 2012-03-29 | 1 | -1/+1 |
|/ / | |||||
* | | added clarification stating the counter_cache attribute needs to be created ↵ | Michael de Silva | 2012-03-11 | 1 | -1/+3 |
| | | | | | | | | on the associate class via a migration | ||||
* | | Fix doc examples for has_and_belongs_to_many association | Braden Schaeffer | 2012-03-05 | 1 | -2/+2 |
|/ | |||||
* | suggested fixes for :dependent => :restrict deprecation. | Manoj | 2012-01-31 | 1 | -2/+4 |
| | |||||
* | has_many/has_one, :dependent => :restrict, deprecation added. | Manoj | 2012-01-29 | 1 | -4/+2 |
| | |||||
* | removed unnecessary require for activesupport/core_ext/array/wrap | Karunakar (Ruby) | 2012-01-07 | 1 | -1/+0 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2011-12-14 | 1 | -1/+1 |
|\ | |||||
| * | changed :finder_sql example to select * | clst | 2011-12-12 | 1 | -1/+1 |
| | | | | | | because with select p.* you can no longer use count(). Using count will result in an SQL error message. | ||||
| * | fixed example for :finder_sql | clst | 2011-12-12 | 1 | -1/+1 |
| | | | | | | people.* will not work when the alias is named p | ||||
* | | fix nodocs | Vijay Dev | 2011-12-09 | 1 | -1/+1 |
|/ | |||||
* | s/is is/is | Vijay Dev | 2011-12-01 | 1 | -1/+1 |
| | |||||
* | changelog & docs for GeneratedFeatureMethods | Josh Susser | 2011-11-27 | 1 | -0/+20 |
| | |||||
* | Add some note on adding index to HABTM table | Prem Sichanugrist | 2011-10-20 | 1 | -0/+4 |
| | |||||
* | Use new migration style in HABTM join table | Prem Sichanugrist | 2011-10-20 | 1 | -5/+1 |
| | | | Yes, we're on Rails 3.1 now. | ||||
* | fixing docs for delete_sql where quotes should be used in this example. | Diego Plentz | 2011-09-26 | 1 | -1/+1 |
| | |||||
* | [:class_name] option in belongs_to should mention belongs_to and not has_one | Erik Behrends | 2011-09-13 | 1 | -1/+1 |
| | |||||
* | Updated the docs for the has_many :finder_sql option to reflect changes made ↵ | Alan Larkin | 2011-08-20 | 1 | -6/+10 |
| | | | | in #a7e19b30ca71f62af516, i.e. the use of Procs when interpolation of the SQL is required. | ||||
* | Add a proxy_association method to association proxies, which can be called ↵ | Jon Leighton | 2011-07-27 | 1 | -0/+6 |
| | | | | by association extensions to access information about the association. This replaces proxy_owner etc with proxy_association.owner. | ||||
* | :joins => joins | Akira Matsuda | 2011-07-08 | 1 | -12/+12 |
| | |||||
* | :include => includes | Akira Matsuda | 2011-07-08 | 1 | -7/+7 |
| | |||||
* | find(:first) => first | Akira Matsuda | 2011-07-08 | 1 | -5/+5 |
| | |||||
* | find(:all) => all | Akira Matsuda | 2011-07-08 | 1 | -18/+18 |
| | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-06-06 | 1 | -4/+4 |
|\ | | | | | | | | | Conflicts: activerecord/RUNNING_UNIT_TESTS | ||||
| * | Fix font styling on associations.rb | Sebastian Martinez | 2011-05-26 | 1 | -4/+4 |
| | | |||||
* | | Corrected some typos and American vs. Queen's English issues | Lee Reilly | 2011-05-29 | 1 | -1/+1 |
| | | |||||
* | | Removes the restriction on primary key when joining in a habtm && test that ↵ | Mohammad El-Abid | 2011-05-26 | 1 | -6/+0 |
|/ | | | | it was properly removed | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-25 | 1 | -30/+32 |
|\ | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb | ||||
| * | has_many :dependent => :restrict raises an exception but is not documented ↵ | Aditya Sanghi | 2011-05-22 | 1 | -2/+4 |
| | | | | | | | | appropriately. has_one also has :dependent => :restrict but is not documented at all. | ||||
| * | Changing examples: use 'each' instead of 'for in' | Guillermo Iguaran | 2011-05-19 | 1 | -4/+4 |
| | | |||||
| * | Remove extra white-spaces. | Sebastian Martinez | 2011-05-19 | 1 | -24/+24 |
| | | |||||
* | | Remove extra white spaces. | Sebastian Martinez | 2011-05-19 | 1 | -3/+3 |
| | | |||||
* | | Implement proxy_owner, proxy_target and proxy_reflection methods on ↵ | Jon Leighton | 2011-05-19 | 1 | -5/+6 |
|/ | | | | CollectionProxy with deprecations. Fixes #1148. |