aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/belongs_to_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #10489 from greenriver/ar_counter_cache_multiple_destroyRafael Mendonça França2013-05-061-0/+20
* Fix issue #7526. Reload the target if it's stale.larrylv2013-03-051-0/+14
* Fix undefined method `to_i' introduced since 3.2.8Jason Stirk2013-01-041-1/+7
* ConnectionAdapters::Column.type_cast_code should always convert values to int...Thiago Pradi2012-09-091-0/+6
* Fix belongs_to polymorphic with custom primary key on target.Jon Leighton2011-09-261-0/+8
* Don't find belongs_to target when the foreign_key is NULL. Fixes #2828Georg Friedrich2011-09-051-0/+6
* Fix exception if old and new targets are both nil. Fixes #1471.Jon Leighton2011-07-121-0/+9
* Ensure that the foreign key gets set when doing record.create_association or ...Jon Leighton2011-07-081-0/+14
* added more tests for update_columnganesh2011-06-041-0/+9
* Handle polymorphic_type NOT NULL-able columns as well.thedarkone2011-05-211-0/+11
* Add block setting of attributes to singular associationsAndrew White2011-05-171-0/+21
* assert_difference can take a callable piece of code rather than just evaling ...Aaron Patterson2011-05-011-4/+4
* fixing more test warnings in 1.9.3Aaron Patterson2011-04-301-3/+3
* Split AssociationProxy into an Association class (and subclasses) which manag...Jon Leighton2011-02-181-8/+5
* 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
* Fix polymorphic belongs_to associationproxy raising errors when loading target.Ernie Miller2011-01-111-0/+9
* just use a hash for doing association cachingAaron Patterson2011-01-071-2/+2
* fixing merge errorsAaron Patterson2011-01-041-11/+0
* Allow assignment on has_one :through where the owner is a new record [#5137 s...Jon Leighton2011-01-031-19/+14
* Some basic tests for the :foreign_type option on belongs_to, which was previo...Jon Leighton2011-01-031-0/+19
* 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
* If a has_many goes :through a belongs_to, and the foreign key of the belongs_...Jon Leighton2010-12-231-23/+37
* Setting the id of a belongs_to object updates all referenced objects [#2989 s...Jeff Dean2010-12-081-0/+37
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-6/+6
* Convert :primary_key in association to a string before comparing to column na...Denis Odorcic2010-10-301-0/+7
* Set attributes properly for model built from association with conditions [#55...Marcelo Giorgi2010-09-281-0/+5
* removing unused codeAaron Patterson2010-08-221-2/+2
* code gardening: we have assert_(nil|blank|present), more concise, with better...Xavier Noria2010-08-171-1/+1
* update tests for mysql2 supportBrian Lopez2010-08-021-1/+1
* Don't increment and then decrement the same counter when re-assigning a belon...Tarmo Tänav2010-07-291-0/+4
* removing unused models from testsSubba Rao Pasupuleti2010-07-211-2/+0
* fix test_belongs_to_with_primary_key_joins_on_correct_column test on OracleRaimonds Simanovskis2010-06-041-0/+4
* Use better assertion methods for testingNeeraj Singh2010-05-191-2/+2
* kill warnings on 1.8.7 [#4331 state:resolved]Aaron Patterson2010-04-101-4/+4
* Fix failing test in MySQL.Emilio Tagua2010-03-301-3/+8
* Fix honoring :primary_key option when joining or eager loading a belongs_to a...Ernie Miller2010-03-291-0/+13
* Add :dependent = to has_one and has_many [#3075 state:resolved]Rizwan Reza2010-03-281-1/+7
* Fix associations to call :destroy or :delete based on the right :dependent op...Carlos Antonio da Silva2010-03-091-6/+26
* Removed duplicated tests [#3026 state:resolved]Arthur Zapparoli2009-08-101-18/+0
* added :order option to find :first methods and associations as otherwise Orac...Raimonds Simanovskis2009-08-061-2/+4
* Add primary_key option to belongs_to associationSzymon Nowak2009-07-151-0/+98
* Fixed autosave checks on objects with hm:t in :include [#2213 state:resolved]Will Bryant2009-03-121-0/+16
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-2/+2
* Ensure belongs_to association with a counter cache in name spaced model works...Adam Cooper2009-03-061-0/+17
* Fixed that autosave should validate associations even if master is invalid [#...David Heinemeier Hansson2009-02-271-129/+0
* Ensure methods called on association proxies respect access control. [#1083 s...Pratik Naik2008-10-131-0/+10
* Remove the functionality introduce in 28d3390Michael Koziarski2008-10-101-13/+0
* Support for updating a belongs to association from the foreign key (without s...Jon Leighton2008-09-131-0/+13