aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/belongs_to_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix polymorphic eager load with foreign_key as String.Lauro Caetano2014-05-201-0/+13
* Prevented belongs_to: touch propagating up if there are no changes being savedBrock Trappitt2014-05-211-0/+7
* Merge pull request #14735 from byroot/idempotent-counter-cachesAaron Patterson2014-04-141-0/+21
|\
| * Write the failing test case for concurrent counter cacheJean Boussier2014-04-131-0/+21
* | Just call read_attribute, no need to use `send`.Lauro Caetano2014-04-141-3/+3
|/
* Fix the test defining the models in the right placeRafael Mendonça França2014-04-041-15/+5
* Merge pull request #11650 from prathamesh-sonpatki/renameRafael Mendonça França2014-04-041-0/+18
|\
| * [Active Record] Renamed private methods create_record and update_recordPrathamesh Sonpatki2014-02-201-0/+18
* | Use rails convetionsRafael Mendonça França2014-03-251-2/+2
* | Merge pull request #14390 from huoxito/true-touchRafael Mendonça França2014-03-251-0/+11
|\ \
| * | Still touch associations when theres no timestampWashington Luiz2014-03-141-0/+11
| |/
* / Add counter cache test for class_nameArthur Neves2014-03-171-0/+11
|/
* Associations now raise `ArgumentError` on name conflicts.Lauro Caetano2014-01-311-0/+10
* `has_one` and `belongs_to` accessors don't add ORDER BY to the queries anymore.Rafael Mendonça França2014-01-211-0/+7
* On destroying do not touch destroyed belongs to association.Paul Nikitochkin2013-12-231-0/+8
* Add a failing test for assigning nil to a polymorphic belongs_to not nullifyi...Jeremy Kemper2013-12-171-0/+13
* updating options documentation for associationsKuldeep Aggarwal2013-11-291-8/+3
* Clear class ivar before testingAkira Matsuda2013-07-291-0/+2
* #11288: Removed duplicated touchingPaul Nikitochkin2013-07-051-1/+42
* Cleanup belongs to testsPaul Nikitochkin2013-07-051-2/+1
* wonderfull => wonderfulVipul A M2013-06-021-1/+1
* Confirm a record has not already been destroyed before decrementingBen Tucker2013-05-061-0/+20
* Refactored test case with standard variable namingAnupam Choudhury2013-03-081-40/+40
* Refactored and removed unnecessary lines in the test caseAnupam Choudhury2013-03-071-3/+3
* Fix undefined method `to_i' introduced since 3.2.8Jason Stirk2013-01-041-0/+12
* Rename update_attributes method to update, keep update_attributes as an aliasAmparo Luna + Guillermo Iguaran2013-01-031-4/+4
* Standardize the use of current_adapter?Rafael Mendonça França2013-01-011-1/+1
* User assert_kind_of, invert assert_equal expectationsCarlos Antonio da Silva2012-11-291-3/+3
* Added STI support to init and building associationsJason Rush2012-11-291-0/+28
* Use method compilation for association methodsJon Leighton2012-08-101-2/+2
* Deprecate ActiveRecord::Base.scoped.Jon Leighton2012-07-271-7/+7
* ActiveRecord::Base.all returns a Relation.Jon Leighton2012-07-271-1/+1
* Deprecate update_column in favor of update_columns.Rafael Mendonça França2012-07-241-2/+2
* fix assertion arguments orderJon Leighton2012-07-131-2/+2
* quarantine deprecated testsJon Leighton2012-05-181-1/+1
* remove deprecated callsJon Leighton2012-04-271-3/+3
* find and replace deprecated keysJon Leighton2012-04-271-2/+2
* %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other th...Jon Leighton2012-04-271-4/+4
* remove calls to find(:first), find(:last) and find(:all)Jon Leighton2012-04-261-1/+1
* Merge remote-tracking branch 'kennyj/fix_5563'Jon Leighton2012-04-251-0/+11
|\
| * Fix #5563. Should reflect the most recent change to either of association / id.kennyj2012-04-131-0/+11
* | add missing testJon Leighton2012-04-251-0/+12
|/
* Get a properly aliased_table_name, when we use a polymorphic association.kennyj2012-04-041-0/+1
* 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