aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
* :touch => :symbol also updates the updated_at attributeBruno Michel2011-05-101-1/+1
|
* Abstract some common code from AssociationScope and ↵Jon Leighton2011-03-111-0/+1
| | | | JoinDependency::JoinAssociation into a JoinHelper module
* Move the code which builds a scope for through associations into a generic ↵Jon Leighton2011-03-101-3/+4
| | | | AssociationScope class which is capable of building a scope for any association.
* Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-041-554/+207
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/class_methods/join_dependency.rb activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb activerecord/lib/active_record/associations/has_many_association.rb activerecord/lib/active_record/associations/has_many_through_association.rb activerecord/lib/active_record/associations/has_one_association.rb activerecord/lib/active_record/associations/has_one_through_association.rb activerecord/lib/active_record/associations/through_association_scope.rb activerecord/lib/active_record/reflection.rb activerecord/test/cases/associations/has_many_through_associations_test.rb activerecord/test/cases/associations/has_one_through_associations_test.rb activerecord/test/cases/reflection_test.rb activerecord/test/cases/relations_test.rb activerecord/test/fixtures/memberships.yml activerecord/test/models/categorization.rb activerecord/test/models/category.rb activerecord/test/models/member.rb activerecord/test/models/reference.rb activerecord/test/models/tagging.rb
| * Move JoinDependency and friends from ↵Jon Leighton2011-02-281-2/+2
| | | | | | | | ActiveRecord::Associations::ClassMethods to just ActiveRecord::Associations
| * Rewrote AssociationPreload.Jon Leighton2011-02-281-0/+2
| |
| * Use proper objects to do the work to build the associations (adding methods, ↵Jon Leighton2011-02-211-387/+22
| | | | | | | | callbacks etc) rather than calling a whole bunch of methods with rather long names.
| * merges docrailsXavier Noria2011-02-181-1/+1
| |\
| | * Fix Typos: remove several occurences of the theNicholas Rowe2011-02-171-1/+1
| | |
| * | Split AssociationProxy into an Association class (and subclasses) which ↵Jon Leighton2011-02-181-34/+30
| | | | | | | | | | | | manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more.
| * | Allow building and then later saving has_many :through records, such that ↵Jon Leighton2011-02-181-7/+31
| | | | | | | | | | | | the join record is automatically saved too. This requires the :inverse_of option to be set on the source association in the join model. See the CHANGELOG for details. [#4329 state:resolved]
| * | Ensure that association_ids uses the correct attribute where the association ↵Jon Leighton2011-02-181-2/+5
| | | | | | | | | | | | is a has_many :through with a :primary_key option on the source reflection. [#6376 state:resolved]
| * | Documentation for recent refinements to association deletionJon Leighton2011-02-071-3/+75
| | |
| * | Support the :dependent option on has_many :through associations. For ↵Jon Leighton2011-02-071-2/+1
| |/ | | | | | | historical and practical reasons, :delete_all is the default deletion strategy employed by association.delete(*records), despite the fact that the default strategy is :nullify for regular has_many. Also, this only works at all if the source reflection is a belongs_to. For other situations, you should directly modify the through association.