aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-051-1/+1
| |\
| | * keep options titles consistent to "Options"Gabriel Horner2011-02-031-1/+1
| | |
| * | Fixing ordering of HABTM association deletion [#6191 state:resolved]Edward Faulkner2011-02-041-1/+1
| |/ | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Removed support for accessing attributes on a has_and_belongs_to_many join ↵Jon Leighton2011-01-161-6/+0
| | | | | | | | table. This has been documented as deprecated behaviour since April 2006. Please use has_many :through instead. A deprecation warning will be added to the 3-0-stable branch for the 3.0.4 release.
| * Abstract common code from BelongsToAssociation and HasOneAssociation into ↵Jon Leighton2011-01-161-0/+1
| | | | | | | | SingularAssociation
| * Document the new create_association! method on one-to-one associationsJon Leighton2011-01-161-1/+9
| |
| * Add create_association! for belongs_toJon Leighton2011-01-161-3/+3
| |
| * Support for create_association! for has_one associationsJon Leighton2011-01-111-0/+1
| |
| * Refactor the code for singular association constructors. This will allow me ↵Jon Leighton2011-01-111-8/+13
| | | | | | | | to define a create_association! method in a minute.
| * It's not necessary to pass the association proxy class around nowJon Leighton2011-01-111-22/+15
| |
| * Get rid of set_association_target and association_loaded? as the parts of ↵Jon Leighton2011-01-111-12/+0
| | | | | | | | the code that need that can now just use association_proxy(:name).loaded?/target=
| * DRY up the code which instantiates the association proxyJon Leighton2011-01-111-35/+24
| |
| * Document the recent changes to association assignmentJon Leighton2011-01-111-4/+9
| |