aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #32355 from kamipo/delegate_to_klass_in_a_scopeRafael França2018-04-061-0/+5
|\
| * Deprecate accessibility of private/protected class methods in named scopeRyuta Kamizono2018-03-301-2/+4
| * Bring back private class methods accessibility in named scopeRyuta Kamizono2018-03-271-0/+3
* | Short circuit the scoping delegation for `relation.all`Ryuta Kamizono2018-03-301-0/+1
|/
* Merge pull request #32221 from composerinteralia/batch-predicate-builderRyuta Kamizono2018-03-221-10/+16
|\
| * Use PredicateBuilder for bind params in BatchesDaniel Colson2018-03-111-10/+16
* | Only preload misses on multifetch cacheLachlan Sylvester2018-03-061-0/+5
|/
* Eager loading with polymorphic associations should behave consistentlyRyuta Kamizono2018-03-041-3/+3
* Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-041-5/+7
* Distinct with order #count regressionMax Schwenk2018-02-251-1/+1
* PostgreSQL: Treat infinite values in date like datetime consistentlyRyuta Kamizono2018-02-232-3/+21
* Use private attr_readerRyuta Kamizono2018-02-236-13/+6
* Revert "Delegate `uniq` to `records`"Ryuta Kamizono2018-02-181-1/+1
* Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-172-8/+2
* Merge pull request #31133 from mohsen-alizadeh/sanitize_empty_and_nil_paramet...Matthew Draper2018-02-111-0/+1
|\
| * sanitize empty and nil parameters to selectMohsen Alizadeh2017-11-121-0/+1
* | Fix formatting of `pick` [ci skip]yuuji.yaginuma2018-02-101-1/+1
* | Add Relation#pick as short-hand for single-value plucks (#31941)David Heinemeier Hansson2018-02-091-0/+18
* | Avoid extra calls to to_sDaniel Colson2018-01-291-1/+1
* | Fix expanding an array of `composed_of` objects which have multiple mappingsRyuta Kamizono2018-01-292-1/+12
* | Fix `count(:all)` with eager loading and having an order other than the drivi...Ryuta Kamizono2018-01-251-1/+8
* | Avoid passing unnecessary arguments to relationDaniel Colson2018-01-242-2/+6
* | Fix relation merger issue with `left_outer_joins`Mehmet Emin INAC2018-01-152-1/+27
* | Merge pull request #28313 from sandrew/masterRyuta Kamizono2018-01-151-2/+3
|\ \
| * | Allow unscoping of left_outer_joinsAndrei Shaidurov2017-03-061-1/+1
* | | Don't need to pass `manager` to `convert_join_strings_to_ast`Ryuta Kamizono2018-01-141-2/+2
* | | Don't pass garbage args to alias trackerRyuta Kamizono2018-01-141-1/+2
* | | Use `apply_join_dependency` instead of meaningless named `find_with_associati...Ryuta Kamizono2018-01-111-24/+11
* | | Make `relation.exists?` more performant when using eager loadingRyuta Kamizono2018-01-111-3/+4
* | | resolve inconsistencies between first and to_a.first with limitBrian Christian2018-01-091-1/+5
* | | Make `find_nth_from_last` more performant when using reversible orderRyuta Kamizono2018-01-071-6/+5
* | | Fix `last` with `offset` to behave consistently with loaded relationRyuta Kamizono2018-01-071-1/+1
* | | Fix `pluck` with eager loading to respect `offset`Ryuta Kamizono2018-01-071-1/+1
* | | Partial revert the changing default value of `readonly_value`Ryuta Kamizono2018-01-051-13/+2
* | | Refactor delegating `join_primary_key` instead of `join_keys` and `associatio...Ryuta Kamizono2018-01-012-2/+2
* | | Place args normalization from `left_outer_joins` to `left_outer_joins!`Ryuta Kamizono2017-12-201-4/+2
* | | Fix `count(:all)` to correctly work `distinct` with custom SELECT listRyuta Kamizono2017-12-201-10/+8
* | | Using table name qualified column names unless having SELECT list explicitlyRyuta Kamizono2017-12-181-2/+2
* | | Make `sanitize_sql_` methods publicyuuji.yaginuma2017-12-132-2/+2
* | | Quote colum_names when building select:Edouard CHIN2017-12-111-1/+1
* | | Fix `scope_for_create` to do not lose polymorphic associationsRyuta Kamizono2017-12-081-2/+16
* | | Update docs `ActiveRecord::FinderMethods#find`suginoy2017-11-281-3/+4
* | | Provide arguments to RecordNotFoundNikita Misharin2017-11-251-5/+9
* | | Update `exists?` documentationNikolai B2017-11-141-1/+2
* | | Merge pull request #27947 from mastahyeti/unsafe_raw_sqlMatthew Draper2017-11-142-1/+14
|\ \ \
| * | | push order arg checks down to allow for bindsBen Toews2017-11-091-27/+6
| * | | deal with Array arguments to #orderBen Toews2017-11-091-1/+13
| * | | convert order arg to string before checking if we can reverse itBen Toews2017-11-091-0/+4
| * | | use << instead of #concat in #reverse_sql_order because we might be working w...Ben Toews2017-11-091-1/+1
| * | | try using regexesBen Toews2017-11-092-28/+5