aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
...
* remove unnecessary code from delete methodeileencodes2014-04-281-10/+2
* write a new method to be accessed from delete_alleileencodes2014-04-281-1/+9
* Merge pull request #14853 from kassio/kb-fix-custom-join-table-habtmYves Senn2014-04-251-1/+1
|\
| * Fix custom join_table name on habtm reflectionsKassio Borges2014-04-251-1/+1
* | Merge branch 'master' into adequaterecordAaron Patterson2014-04-253-4/+6
|\|
| * reset `@arel` when modifying a Relation in place.Yves Senn2014-04-241-1/+1
| * Merge pull request #14757 from estsauver/14752Rafael Mendonça França2014-04-221-1/+1
| |\
| | * select! renamed to avoid name collision Array#select!Earl J St Sauver2014-04-211-1/+1
| * | Merge pull request #14573 from habermann24/has_many_through_fixRafael Mendonça França2014-04-221-2/+4
| |\ \
| | * | Minor improvement: Use the merge method on the relation instead of instance_e...Jan Habermann2014-04-031-1/+1
| | * | Simplify the code in target_scopeJan Habermann2014-04-031-5/+2
| | * | Properly handle scoping with has_many :through. Fixes #14537.Jan Habermann2014-04-031-2/+7
* | | | use statement cache for belongs_to relationsAaron Patterson2014-04-222-2/+13
* | | | extract record fetching to a method for belongs_toAaron Patterson2014-04-221-1/+5
* | | | Merge branch 'master' into adequaterecordAaron Patterson2014-04-202-33/+15
|\| | |
| * | | Hide BelongsToAssociation#increment_counters and #decrement_countersJean Boussier2014-04-152-3/+2
| * | | Use inheritance chain instead of callbacks to increment counter caches after ...Jean Boussier2014-04-141-16/+0
| * | | Use inheritance chain instead of callbacks to increment counter caches after ...Jean Boussier2014-04-142-16/+15
| | |/ | |/|
* | | use cache queries for hm:t associationsAaron Patterson2014-04-151-1/+1
* | | cache scope building on associationsAaron Patterson2014-04-142-7/+64
* | | Merge branch 'master' into adequaterecordAaron Patterson2014-04-143-7/+12
|\| |
| * | Merge pull request #14735 from byroot/idempotent-counter-cachesAaron Patterson2014-04-141-4/+5
| |\ \
| | * | Make counter cache decrementation on destroy idempotentJean Boussier2014-04-131-4/+5
| * | | again, read_attribute is public, so just call itAaron Patterson2014-04-131-1/+1
| * | | read_attribute is public, so we should just call itAaron Patterson2014-04-131-1/+1
| |/ /
| * | Merge pull request #12829 from iantropov/issue_insert_via_hmt_scope_3548Rafael Mendonça França2014-04-101-1/+5
| |\ \
| | * | Fix insertion of records for hmt association with scope, fix #3548Ivan Antropov2013-11-171-1/+5
* | | | Merge branch 'master' into adequaterecordAaron Patterson2014-04-075-46/+22
|\| | |
| * | | remove check for present? from delete_alleileencodes2014-04-071-2/+2
| * | | fix CollectionProxy delete_all documentationeileencodes2014-04-061-6/+1
| * | | Merge pull request #11650 from prathamesh-sonpatki/renameRafael Mendonça França2014-04-042-7/+7
| |\ \ \
| | * | | [Active Record] Renamed private methods create_record and update_recordPrathamesh Sonpatki2014-02-202-7/+7
| * | | | CollectionProxy uses the arel of its association's scope.Jefferson Lai2014-04-021-0/+4
| * | | | Merge pull request #14546 from eileencodes/fix_delete_all_to_not_use_IN_state...Aaron Patterson2014-03-311-1/+1
| |\ \ \ \ | | |_|_|/ | |/| | |
| | * | | fix delete_all to remove records directlyeileencodes2014-03-311-1/+1
| * | | | Simplify Preloader#grouped_records code.thedarkone2014-03-301-20/+6
| * | | | Fix polymorphic preloads on NOT NULL _type columns.thedarkone2014-03-301-10/+1
| |/ / /
| * | | Merge pull request #14154 from al2o3cr/issue12770Aaron Patterson2014-03-271-1/+1
| |\ \ \
| | * | | Pass a base relation to build_default_scope when joiningMatt Jones2014-02-211-1/+1
* | | | | Merge branch 'master' into adequaterecordAaron Patterson2014-03-251-2/+1
|\| | | |
| * | | | Avoid duplicated conditionalsCarlos Antonio da Silva2014-03-141-2/+1
* | | | | Merge branch 'master' into adequaterecordAaron Patterson2014-03-131-1/+1
|\| | | |
| * | | | passing an ActiveRecord object to `exists?` is deprecated.Aaron Patterson2014-03-131-1/+1
* | | | | Merge branch 'master' into adequaterecordAaron Patterson2014-03-133-6/+8
|\| | | |
| * | | | make tests pass on Ruby 2.2Aaron Patterson2014-03-131-4/+4
| * | | | Replace map.flatten with flat_map in activerecordErik Michaels-Ober2014-03-031-1/+1
| * | | | Remove unnecessary db call when replacing.Arthur Neves2014-02-281-1/+3
* | | | | Merge branch 'master' into adequaterecordAaron Patterson2014-02-263-10/+5
|\| | | |
| * | | | let `insert_record` actuall save the object.Aaron Patterson2014-02-252-4/+3
| |/ / /
| * | | Prevent foreign_key_for? from type casting all attributesWojtek Kruszewski2014-02-211-1/+1