aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* fixup guides in light of :dependent changesJon Leighton2012-08-101-7/+7
|
* Remove the dependent_restrict_raises option.Jon Leighton2012-08-101-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 APIJon Leighton2012-08-031-190/+80
|
* load active_support/core_ext/module/delegation in active_support/railsXavier Noria2012-08-021-1/+0
|
* load active_support/core_ext/class/attribute in active_support/railsXavier Noria2012-08-021-1/+0
|
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
|
* Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql."Jon Leighton2012-08-011-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 dependentRodrigo Flores2012-07-281-1/+2
|
* Missed extend for eager_autoloadDmitry Vorotilin2012-07-261-0/+1
|
* Merge pull request #7161 from ↵Jon Leighton2012-07-261-5/+7
|\ | | | | | | | | michaelfairley/eager_load_active_record_association_helpers Eager autoload ActiveRecord association helpers
| * Eager autoload ActiveRecord association helpersMichael Fairley2012-07-251-5/+7
| |
* | Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql.Jon Leighton2012-07-201-31/+0
| |
* | Avoid options ever being nilJon Leighton2012-07-201-4/+4
| | | | | | | | This fixes active_record_deprecated_finders.
* | Allow associations to take a lambda which builds the scopeJon Leighton2012-07-131-8/+8
| |
* | Mention effect of accepts_nested_attributes_for on association autosave ↵Chris Gunther2012-06-271-0/+8
| | | | | | | | option [ci skip]
* | Update AR has_one association exampleAlexey Vakhov2012-05-161-1/+1
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-041-8/+8
|\ \
| * | simpler wording and explanationsHrvoje Šimić2012-05-011-8/+8
| | |
* | | Change the example for habtm association to use proc according to changelogAlexander Zubkov2012-03-291-1/+1
|/ /
* | added clarification stating the counter_cache attribute needs to be created ↵Michael de Silva2012-03-111-1/+3
| | | | | | | | on the associate class via a migration
* | Fix doc examples for has_and_belongs_to_many associationBraden Schaeffer2012-03-051-2/+2
|/
* suggested fixes for :dependent => :restrict deprecation.Manoj2012-01-311-2/+4
|
* has_many/has_one, :dependent => :restrict, deprecation added.Manoj2012-01-291-4/+2
|
* removed unnecessary require for activesupport/core_ext/array/wrapKarunakar (Ruby)2012-01-071-1/+0
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-12-141-1/+1
|\
| * changed :finder_sql example to select * clst2011-12-121-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 clst2011-12-121-1/+1
| | | | | | people.* will not work when the alias is named p
* | fix nodocsVijay Dev2011-12-091-1/+1
|/
* s/is is/isVijay Dev2011-12-011-1/+1
|
* changelog & docs for GeneratedFeatureMethodsJosh Susser2011-11-271-0/+20
|
* Add some note on adding index to HABTM tablePrem Sichanugrist2011-10-201-0/+4
|
* Use new migration style in HABTM join tablePrem Sichanugrist2011-10-201-5/+1
| | | Yes, we're on Rails 3.1 now.
* fixing docs for delete_sql where quotes should be used in this example.Diego Plentz2011-09-261-1/+1
|
* [:class_name] option in belongs_to should mention belongs_to and not has_oneErik Behrends2011-09-131-1/+1
|
* Updated the docs for the has_many :finder_sql option to reflect changes made ↵Alan Larkin2011-08-201-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 Leighton2011-07-271-0/+6
| | | | by association extensions to access information about the association. This replaces proxy_owner etc with proxy_association.owner.
* :joins => joinsAkira Matsuda2011-07-081-12/+12
|
* :include => includesAkira Matsuda2011-07-081-7/+7
|
* find(:first) => firstAkira Matsuda2011-07-081-5/+5
|
* find(:all) => allAkira Matsuda2011-07-081-18/+18
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-061-4/+4
|\ | | | | | | | | Conflicts: activerecord/RUNNING_UNIT_TESTS
| * Fix font styling on associations.rbSebastian Martinez2011-05-261-4/+4
| |
* | Corrected some typos and American vs. Queen's English issuesLee Reilly2011-05-291-1/+1
| |
* | Removes the restriction on primary key when joining in a habtm && test that ↵Mohammad El-Abid2011-05-261-6/+0
|/ | | | it was properly removed
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-251-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 Sanghi2011-05-221-2/+4
| | | | | | | | appropriately. has_one also has :dependent => :restrict but is not documented at all.
| * Changing examples: use 'each' instead of 'for in'Guillermo Iguaran2011-05-191-4/+4
| |
| * Remove extra white-spaces.Sebastian Martinez2011-05-191-24/+24
| |
* | Remove extra white spaces.Sebastian Martinez2011-05-191-3/+3
| |
* | Implement proxy_owner, proxy_target and proxy_reflection methods on ↵Jon Leighton2011-05-191-5/+6
|/ | | | CollectionProxy with deprecations. Fixes #1148.