aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/belongs_to_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* 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
* 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