aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* Has many through - It is not necessary to manually merge in the conditions ha...Jon Leighton2011-01-301-1/+11
* AssociationCollection#clear can basically just use #delete_all, except it sho...Jon Leighton2011-01-301-3/+6
* AssociationCollection#to_ary should definitely dup the target! Also changed #...Jon Leighton2011-01-301-0/+7
* DRY up first/last and hence make last benefit from the bugfix in firstJon Leighton2011-01-301-0/+6
* We shouldn't be using scoped.scoping { ... } to build associated records, as ...Jon Leighton2011-01-302-1/+32
* Removed support for accessing attributes on a has_and_belongs_to_many join ta...Jon Leighton2011-01-161-83/+0
* belongs_to records should be initialized within the association scopeJon Leighton2011-01-161-0/+21
* Add create_association! for belongs_toJon Leighton2011-01-161-0/+17
* Add missing requireSantiago Pastorino2011-01-141-0/+1
* include_in_memory? should check against @target list in case of new records. ...Aaron Patterson2011-01-121-0/+7
* adding a test for no method errorAaron Patterson2011-01-111-0/+52
* use underlying _read_attribute method rather than causing NoMethodErrorsAaron Patterson2011-01-111-1/+1
* Support for create_association! for has_one associationsJon Leighton2011-01-111-0/+18
* Get rid of set_association_target and association_loaded? as the parts of the...Jon Leighton2011-01-111-1/+1
* Raise ActiveRecord::RecordNotSaved if an AssociationCollection fails to be re...Jon Leighton2011-01-111-0/+13
* When assigning a has_one, if anything fails, the assignment should be rolled ...Jon Leighton2011-01-111-2/+5
* In a number of places in the tests, we only need to turn off transactional fi...Jon Leighton2011-01-111-1/+2
* When assigning a has_one, if the new record fails to save, raise an errorJon Leighton2011-01-111-14/+14
* When assigning a has_one, if the existing record fails to be removed from the...Jon Leighton2011-01-111-0/+12
* has_one should always remove the old record (properly), even if not saving th...Jon Leighton2011-01-111-10/+25
* Fix polymorphic belongs_to associationproxy raising errors when loading target.Ernie Miller2011-01-111-0/+9
* Don't not remove double negativesJon Leighton2011-01-071-1/+1
* Construct an actual ActiveRecord::Relation object for the association scope, ...Jon Leighton2011-01-071-8/+0
* just use a hash for doing association cachingAaron Patterson2011-01-071-2/+2
* fixing merge errorsAaron Patterson2011-01-042-78/+0
* Remove undocumented feature from has_one where you could pass false as the se...Jon Leighton2011-01-032-36/+7
* When preloading a belongs_to, the target should still be set (to nil) if ther...Jon Leighton2011-01-031-0/+9
* Let AssociationCollection#find use #scoped to do its finding. Note that I am ...Jon Leighton2011-01-031-7/+0
* Allow assignment on has_one :through where the owner is a new record [#5137 s...Jon Leighton2011-01-033-22/+53
* Some basic tests for the :foreign_type option on belongs_to, which was previo...Jon Leighton2011-01-032-1/+31
* Support for :counter_cache on polymorphic belongs_toJon Leighton2010-12-311-0/+12
* Refactor BelongsToAssociation to allow BelongsToPolymorphicAssociation to inh...Jon Leighton2010-12-311-6/+36
* Verify that when has_many associated objects are destroyed via :dependent => ...Jon Leighton2010-12-311-0/+9
* Fix dodgy tests which were effectively asserting nil == nilJon Leighton2010-12-261-3/+3
* Raise an error for associations which try to go :through a polymorphic associ...Jon Leighton2010-12-231-3/+8
* If a has_many goes :through a belongs_to, and the foreign key of the belongs_...Jon Leighton2010-12-233-23/+68
* Test to verify that #2189 (count with has_many :through and a named_scope) is...Jon Leighton2010-12-231-0/+5
* Revert "Optimize <association>_ids for hm:t with belongs_to source". The opti...Jon Leighton2010-12-231-6/+2
* Test demonstrating problem with foo.association_ids where it's a has_many :th...Jon Leighton2010-12-231-0/+4
* When a has_many association is not :uniq, appending the same record multiple ...Jon Leighton2010-12-231-0/+10
* Fix behaviour of foo.has_many_through_association.select('custom select') [#6...Michał Łomnicki2010-12-231-0/+5
* Fix creation of has_many through records with custom primary_key option on be...Szymon Nowak2010-12-231-1/+29
* Verify that has_one :through preload respects the :conditions [#2976 state:re...Will Bryant2010-12-231-0/+12
* Don't allow a has_one association to go :through a collection association [#2...Jon Leighton2010-12-231-5/+7
* Fix for default_scope tests to ensure comparing of equally sorted listsRaimonds Simanovskis2010-12-232-2/+2
* removing SQL interpolation, please use scoping and attribute conditionals as ...Aaron Patterson2010-12-221-4/+0
* define_attr_method must serialize nil correctlyAaron Patterson2010-12-201-0/+4
* has_many associations with :dependent => :delete_all should update the counte...Jon Leighton2010-12-201-0/+12
* Fix problem where wrong keys are used in JoinAssociation when an association ...Jon Leighton2010-12-201-0/+7
* Fix various issues with the :primary_key option in :through associations [#24...Jon Leighton2010-12-151-0/+16