aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Expand)AuthorAgeFilesLines
* Deduplicate joins valuesRyuta Kamizono2019-08-021-3/+3
* Preserve user supplied joins order as much as possibleRyuta Kamizono2019-07-301-16/+30
* Merge pull request #36412 from robotdana/compact_blankRafael Mendonça França2019-07-251-6/+6
|\
| * Use compact_blank throughout railsDana Sherson2019-06-051-6/+6
* | [ActiveRecord] Deduplicate optimizer hintsKir Shatrov2019-07-191-1/+1
* | Merge pull request #36647 from giraffate/fix_exists_with_distinct_and_offset_...Ryuta Kamizono2019-07-111-1/+1
|\ \
| * | Fix `relation.exists?` with giving `distinct`, `offset` and `order` for joine...Takayuki Nakata2019-07-101-1/+1
|/ /
* | Do not use aliases in GROUP BY clauseRyuta Kamizono2019-07-081-1/+1
* | PostgreSQL: Fix GROUP BY with ORDER BY virtual count attributeRyuta Kamizono2019-06-171-10/+15
* | Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-136-7/+0
* | Refactor `disallow_raw_sql!` to avoid `split(/\s*,\s*/)` to order argsRyuta Kamizono2019-06-091-0/+1
* | Allow quoted identifier string as safe SQL stringRyuta Kamizono2019-06-061-1/+1
|/
* Implicit through table joins should be appeared before user supplied joinsRyuta Kamizono2019-05-191-17/+11
* Fix merging left_joins to maintain its own `join_type` contextRyuta Kamizono2019-04-273-8/+14
* Avoid redundant `attribute_alias?` before `attribute_alias`Ryuta Kamizono2019-04-241-1/+1
* Merge pull request #36029 from kamipo/deprecate_where_notRyuta Kamizono2019-04-232-9/+26
|\
| * Deprecate `where.not` working as NOR and will be changed to NAND in Rails 6.1Ryuta Kamizono2019-04-192-9/+26
* | Don't table name qualify aggrigate column for virtual attributeRyuta Kamizono2019-04-221-4/+2
* | Remove useless `set_value` / `get_value` helper methodsRyuta Kamizono2019-04-221-15/+8
* | Give GeneratedRelationMethods module a nameRyuta Kamizono2019-04-191-1/+4
|/
* Clarify exists check in logsDan Fitch2019-04-091-1/+1
* Remove duplicated attribute alias resolution in `_select!`Ryuta Kamizono2019-04-091-6/+3
* Fix GROUP BY with calculate longer name field to respect `table_alias_length`Ryuta Kamizono2019-04-081-5/+6
* Don't repeat same expression in SELECT and GROUP BY clausesRyuta Kamizono2019-04-061-26/+20
* Stash `left_joins` into `joins` to deduplicate redundant LEFT JOINRyuta Kamizono2019-04-053-30/+30
* Fix `count(:all)` with eager loading and explicit select and orderRyuta Kamizono2019-04-041-4/+5
* Optimizer hints should be applied on Top level query as much as possibleRyuta Kamizono2019-04-042-3/+13
* Merge pull request #35727 from zinosama/zzz/update-doc-for-includesRyuta Kamizono2019-04-011-1/+7
|\
| * [ci skip] Update doc for unnecessary #referenceszino2019-03-231-1/+7
* | Add `ActiveRecord::Relation#extract_associated` for extracting associated rec...David Heinemeier Hansson2019-03-291-0/+13
|/
* Add Relation#annotate for SQL commentingMatt Yoho2019-03-211-1/+22
* Add test case for unscoping `:optimizer_hints`Ryuta Kamizono2019-03-181-1/+1
* Support Optimizer HintsRyuta Kamizono2019-03-161-0/+24
* Merge pull request #35503 from samjohn/cannot-grammar-correctionXavier Noria2019-03-072-2/+2
|\
| * Replace “can not” with “cannot”.Samantha John2019-03-062-2/+2
* | Fix incorrect identifier quoting [ci skip]Ryuta Kamizono2019-03-071-2/+2
|/
* Relax table name detection in `from` to allow any extension like INDEX hintRyuta Kamizono2019-03-011-2/+5
* Merge pull request #33611 from willianveiga/feature/reselect-methodAndrew White2019-03-011-0/+21
|\
| * Avoid creating an extra relation instanceWillian Gustavo Veiga2018-10-241-2/+9
| * Merge branch 'master' into feature/reselect-methodWillian Gustavo Veiga2018-10-221-10/+8
| |\
| * \ Merge branch 'master' into feature/reselect-methodWillian Gustavo Veiga2018-10-111-0/+30
| |\ \
| * \ \ Merge branch 'master' into feature/reselect-methodWillian Gustavo Veiga2018-10-027-24/+30
| |\ \ \
| * | | | Add reselect methodWillian Gustavo Veiga2018-08-131-0/+14
* | | | | [ci skip] The `find` method coerces the given arguments to integer if the `pr...Mehmet Emin INAC2019-02-281-1/+1
* | | | | [ci skip] Fix the documentation of ActiveRecord::FinderMethods#findMehmet Emin INAC2019-02-281-2/+2
* | | | | Refactor `generated_relation_methods` to remove duplicated code on `ClassSpec...Ryuta Kamizono2019-02-281-31/+20
* | | | | fixes different `count` calculation when using `size` manual `select` with DI...jvillarejo2019-02-261-3/+8
* | | | | Fix `pluck` and `select` with `from` if `from` has original table nameRyuta Kamizono2019-02-221-1/+3
* | | | | Fix lint `ShadowingOuterLocalVariable`soartec-lab2019-02-211-3/+3
* | | | | Don't allow `where` with invalid value matches to nil valuesRyuta Kamizono2019-02-181-2/+4