aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/association_scope.rb
Commit message (Expand)AuthorAgeFilesLines
* Reuse AR::Association#find_target methodBogdan Gusiev2018-12-271-1/+3
* Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-041-4/+4
* Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-2/+2
* Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-171-5/+1
* Decouple building `AliasTracker` from `JoinDependency`Ryuta Kamizono2017-10-081-2/+1
* Ensure `AliasTracker` respects a custom table nameRyuta Kamizono2017-09-301-1/+1
* Remove unnecessary `join_type` in `AssociationScope`Ryuta Kamizono2017-09-081-5/+1
* Don't pass `table` to `last_chain_scope` and `next_chain_scope`Ryuta Kamizono2017-09-071-17/+15
* `has_many :through` with unscope should affect to through scopeRyuta Kamizono2017-09-071-21/+14
* Don't pass unneeded `reflection` to `add_constraints`Ryuta Kamizono2017-09-051-3/+3
* Scope in associations should treat nil as `all`Ryuta Kamizono2017-09-041-1/+2
* Specify `table.name` only when `scope.table` and `table` are different (#29058)Ryuta Kamizono2017-08-111-4/+12
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Don't passing `klass.connection` to `AssociationScope`Ryuta Kamizono2017-06-291-4/+4
* Merge pull request #29557 from kamipo/extract_build_scope_and_predicate_builderRafael França2017-06-261-4/+3
|\
| * Extract `build_scope` and `predicate_builder` in `Reflection`Ryuta Kamizono2017-06-241-4/+3
* | The AliasTracker#aliased_table_for needs the type caster for the joined assoc...Ray Zane2017-06-251-2/+6
|/
* Fix association with extension issuesRyuta Kamizono2017-05-281-1/+1
* remove unused parametersAaron Patterson2017-03-031-6/+6
* `join_keys` no longer needs a class passed to itAaron Patterson2017-03-031-2/+2
* Chain scope constraints should respect own table aliasRyuta Kamizono2017-02-011-5/+6
* Describe what we are protectingAkira Matsuda2016-12-231-0/+2
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-79/+79
* Replacement cycle for readabilityMolchanov Andrey2016-05-101-2/+1
* Allow symbols using "dot notation" to be passed to whereSean Griffin2016-04-121-2/+2
* Ensure associations still work when the table name contains a dotSean Griffin2016-03-311-2/+2
* Changed the order of Association constraints from where->order->unscope to un...kal2015-10-201-1/+1
* Correct through associations using scopesSean Griffin2015-06-301-0/+1
* Go through normal `where` logic in `AssociationScope`Sean Griffin2015-01-261-51/+31
* Remove all references to `where_values` in association codeSean Griffin2015-01-251-2/+1
* Remove references to `:bind` in `except`Sean Griffin2015-01-251-1/+1
* Cleanup methods, missing spacing and missing nodocseileencodes2015-01-021-19/+20
* Move `#type_caster` to alias tracker initializeeileencodes2015-01-021-1/+1
* Add `#all_includes` method to reflectionseileencodes2015-01-021-1/+3
* Initialze `#alias_tracker` with base table nameeileencodes2015-01-021-1/+0
* Move `alias_candiate` into `AbstractReflection`eileencodes2015-01-021-9/+7
* Pass `connection` rather than `alias_tracker`eileencodes2015-01-021-4/+4
* Assign the `#alias_name` to each reflectioneileencodes2015-01-021-11/+12
* Clean up / refactor new reflection classeseileencodes2015-01-021-50/+1
* Refactor `#get_chain` iteration to a linked listeileencodes2015-01-021-14/+21
* Refactor `#get_chain` to remove need for `#construct_tables`eileencodes2015-01-021-14/+11
* Move `#alias_name` to `ReflectionProxy` classeileencodes2015-01-021-10/+23
* Clean up assignments in `#add_constraints`eileencodes2015-01-021-8/+3
* Refactor construct_tables methodeileencodes2015-01-021-36/+10
* Add RuntimeReflection for recursive access to chaineileencodes2015-01-021-3/+54
* Add PolymorphicReflection and constraints methodeileencodes2015-01-021-3/+4
* Pass a type caster when aliasing tables for joinsSean Griffin2014-12-291-1/+2
* Pass connection rather than alias_trackereileencodes2014-12-131-16/+17