aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Expand)AuthorAgeFilesLines
* Prevent extra `scope` construction in `find_target`Ryuta Kamizono2017-06-183-3/+5
* Raise on create for singular association when parent is unpersistedAlex Kitchens2017-06-081-0/+4
* Don't expose methods and attrs for internal usageRyuta Kamizono2017-05-304-8/+10
* Merge pull request #29098 from kamipo/fix_association_with_extension_issuesMatthew Draper2017-05-304-26/+22
|\
| * Extract `default_extensions` to avoid `klass.all`Ryuta Kamizono2017-05-301-1/+1
| * Cache the association proxy objectRyuta Kamizono2017-05-282-4/+8
| * Fix association with extension issuesRyuta Kamizono2017-05-283-22/+14
* | Remove unused `Association#interpolate`Ryuta Kamizono2017-05-281-8/+0
|/
* Merge pull request #29174 from kamipo/remove_unused_join_part_nameMatthew Draper2017-05-241-4/+0
|\
| * Remove unused `JoinPart#name`Ryuta Kamizono2017-05-221-4/+0
* | Refactor making join constraintsRyuta Kamizono2017-05-231-23/+6
|/
* Remove useless `target_records_from_association`Ryuta Kamizono2017-05-041-11/+3
* Evaluate belongs_to :default option against the owner, not the associationGeorge Claghorn2017-04-271-1/+1
* Mixin `CollectionProxy::DelegateExtending` after `ClassSpecificRelation`Ryuta Kamizono2017-04-221-10/+18
* Prevent double firing the before save callback of new object when the parent ...Ryuta Kamizono2017-04-213-46/+34
* Remove `CollectionProxy#uniq`Ryuta Kamizono2017-03-231-4/+0
* Fix extension method with dirty target in has_many associationsRyuta Kamizono2017-03-201-2/+3
* Evaluate the default block only when necessaryRyuta Kamizono2017-03-202-3/+3
* Add :default option to belongs_to (#28453)George Claghorn2017-03-172-1/+12
* Fix select with block doesn't return newly built records in has_many associationRyuta Kamizono2017-03-091-2/+2
* remove unused parametersAaron Patterson2017-03-031-6/+6
* `join_keys` no longer needs a class passed to itAaron Patterson2017-03-032-3/+3
* ask reflection for klass join reflectionAaron Patterson2017-03-031-13/+1
* Move join scopes on to the reflection objectAaron Patterson2017-03-031-8/+1
* Remove `node` parameter to `join_constraints`Aaron Patterson2017-03-032-3/+3
* Revert "Dupping a CollectionProxy should dup the load_target"eileencodes2017-02-281-4/+0
* Dupping a CollectionProxy should dup the load_targeteileencodes2017-02-281-0/+4
* Merge pull request #25877 from kamipo/delegate_to_scope_rather_than_mergeMatthew Draper2017-02-213-24/+29
|\
| * Define `respond_to_missing?` instead of `respond_to?`Ryuta Kamizono2017-02-211-4/+4
| * Cache target scope for collection proxyRyuta Kamizono2016-12-252-3/+4
| * No need to cache collection proxies separatelyRyuta Kamizono2016-12-251-7/+1
| * Delegate to `scope` rather than `merge!` for collection proxyRyuta Kamizono2016-12-252-14/+24
* | Chain scope constraints should respect own table aliasRyuta Kamizono2017-02-011-5/+6
* | Merge pull request #27838 from kamipo/reload_destroyed_through_recordRafael França2017-01-311-0/+4
|\ \
| * | Reload `through_record` that has been destroyed in `create_through_record`Ryuta Kamizono2017-01-291-0/+4
* | | Fix `scopes` implementation on `PolymorphicReflection`Aaron Patterson2017-01-302-7/+3
|/ /
* | class Foo < Struct.new(:x) creates an extra unneeded anonymous classAkira Matsuda2017-01-131-1/+1
* | Reduce string objects by using \ instead of + or << for concatenating stringsAkira Matsuda2017-01-121-1/+1
* | `self.` is not needed when calling its own instance methodAkira Matsuda2017-01-051-1/+1
* | Merge pull request #26352 from kamipo/avoid_to_call_set_inverse_instance_twiceArthur Nogueira Neves2017-01-032-2/+2
|\ \
| * | Avoid to call `set_inverse_instance` twice for `has_many` associationRyuta Kamizono2016-12-282-2/+2
* | | Refactor `CollectionAssociation#ids_reader`Ryuta Kamizono2017-01-011-3/+1
* | | Remove deprecated force reload argument in association readersRafael Mendonça França2016-12-292-20/+4
* | | Remove deprecated i18n scopes in Active RecordRafael Mendonça França2016-12-292-16/+2
* | | Should not update children when the parent creation with no reasonRyuta Kamizono2016-12-291-4/+6
* | | Fix Rubocop violations and fix documentation visibilityRafael Mendonça França2016-12-282-5/+5
|/ /
* | Merge pull request #27442 from kamipo/fix_27434Eileen M. Uchitelle2016-12-272-13/+16
|\ \ | |/ |/|
| * Add a record to target before any callbacks loads the recordRyuta Kamizono2016-12-232-13/+16
* | No need `:doc:` for `:nodoc:` classes [ci skip]Ryuta Kamizono2016-12-251-1/+1
* | Privatize unneededly protected methods in Active RecordAkira Matsuda2016-12-242-9/+5