aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/collection_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Use compact_blank throughout railsDana Sherson2019-06-051-1/+1
* Revert "Merge pull request #35127 from bogdan/counter-cache-loading"Ryuta Kamizono2019-02-131-2/+1
* Merge pull request #35178 from bogdan/has-many-sizeRyuta Kamizono2019-02-081-2/+2
|\
| * Bugfix has_many association #size when ids reader is cached and association i...Bogdan Gusiev2019-02-081-2/+2
* | Fix `CollectionProxy#concat` to return self by alias it to `#<<`Yuya Tanaka2019-02-061-3/+2
|/
* Bugfix association loading behavior when counter cache is zeroBogdan Gusiev2019-02-051-2/+3
* Merge pull request #34806 from bogdan/reuse-find-targetRyuta Kamizono2018-12-271-16/+0
|\
| * Reuse AR::Association#find_target methodBogdan Gusiev2018-12-271-15/+0
|/
* Revert "Merge pull request #34538 from bogdan/reuse-find-target"Ryuta Kamizono2018-11-281-0/+15
* Reuse code in AR::Association#find_targetBogdan Gusiev2018-11-271-16/+0
* Rename union to intersectionFlorian Ebeling2018-11-061-1/+1
* Fix handling of duplicates for `replace` on has_many-throughFlorian Ebeling2018-11-061-3/+3
* Don't use `target=`Rafael Mendonça França2018-06-111-1/+1
* Use `-=` to change the update the collection on the associationRafael Mendonça França2018-06-111-2/+1
* Merge pull request #29939 from arthurchui/activerecord-delete-associations-loopRafael Mendonça França2018-06-111-1/+2
|\
| * Use hash lookup for deleting existing associations from `target`Arthur Chui2017-07-251-1/+2
* | Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-3/+9
* | Initialization block is a part of `build_record`Ryuta Kamizono2018-06-041-5/+2
* | Ensure that `ids_reader` respects dirty target whether target is loaded or notRyuta Kamizono2018-04-271-1/+3
* | Loaded associations should not run a new query when size is calledGraham Turner2018-04-261-1/+3
* | `target` in `CollectionAssociation` is always an arrayRyuta Kamizono2018-04-211-2/+2
* | Avoid extra calls to to_sDaniel Colson2018-01-291-1/+1
* | Remove `association_primary_key_type` from `AssociationReflection` and `Throu...Ryuta Kamizono2018-01-011-2/+2
* | Provide arguments to RecordNotFoundNikita Misharin2017-11-251-1/+7
* | Move duplicated code to `delete_or_destroy` in `CollectionAssociation`Ryuta Kamizono2017-10-061-4/+2
* | Merge pull request #27609 from kamipo/fix_association_primary_keyRafael França2017-08-141-4/+7
|\ \
| * | Fix `reflection.association_primary_key` for `has_many` associationsRyuta Kamizono2017-08-131-4/+7
* | | Delegate to `Enumerable#find` for `CollectionProxy`Ryuta Kamizono2017-08-131-15/+11
|/ /
* | Merge pull request #29720 from gaurish/ar_find_error_message_improvementRafael França2017-08-111-1/+3
|\ \
| * | Return Not found Ids in ActiveRecord::NotFoundGaurish Sharma2017-07-291-1/+3
| |/
* / Passing `klass` to `StatementCache.new`Ryuta Kamizono2017-08-041-6/+4
|/
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Fix `create_with` using both string and symbolRyuta Kamizono2017-07-161-4/+0
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Merge pull request #29540 from kirs/rubocop-frozen-stringMatthew Draper2017-07-021-0/+1
|\
| * Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* | Should be clear `@association_ids` when joined newly associated recordRyuta Kamizono2017-06-301-2/+11
|/
* Merge pull request #29610 from kamipo/dont_passing_klass_connection_to_associ...Rafael França2017-06-281-1/+1
|\
| * Don't passing `klass.connection` to `AssociationScope`Ryuta Kamizono2017-06-291-1/+1
* | Fix `ids_reader` to respect case sensitive primary keyRyuta Kamizono2017-06-281-4/+1
|/
* Prevent extra `scope` construction in `find_target`Ryuta Kamizono2017-06-181-1/+2
* Cache the association proxy objectRyuta Kamizono2017-05-281-1/+2
* Prevent double firing the before save callback of new object when the parent ...Ryuta Kamizono2017-04-211-35/+32
* Merge pull request #25877 from kamipo/delegate_to_scope_rather_than_mergeMatthew Draper2017-02-211-10/+4
|\
| * No need to cache collection proxies separatelyRyuta Kamizono2016-12-251-7/+1
| * Delegate to `scope` rather than `merge!` for collection proxyRyuta Kamizono2016-12-251-3/+3
* | Merge pull request #26352 from kamipo/avoid_to_call_set_inverse_instance_twiceArthur Nogueira Neves2017-01-031-1/+2
|\ \
| * | Avoid to call `set_inverse_instance` twice for `has_many` associationRyuta Kamizono2016-12-281-1/+2
* | | Refactor `CollectionAssociation#ids_reader`Ryuta Kamizono2017-01-011-3/+1
* | | Remove deprecated force reload argument in association readersRafael Mendonça França2016-12-291-10/+2
|/ /