aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Expand)AuthorAgeFilesLines
* 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
| * | | allow table name and direction in string order argBen Toews2017-11-092-25/+32
| * | | call enforce_raw_sql_whitelist on @klass so it works with FakeKlassBen Toews2017-11-091-2/+2
| * | | work with actual string when reversing orderBen Toews2017-11-091-0/+3
| * | | allow Arel.sql() for pluckBen Toews2017-11-092-53/+21
| * | | add config to check arguments to unsafe AR methodsBen Toews2017-11-092-14/+77
* | | | Merge pull request #30980 from sobrinho/sobrinho/arel-star-ignored-columnsRafael França2017-11-131-0/+2
|\ \ \ \ | |_|_|/ |/| | |
| * | | Do not use `Arel.star` when `ignored_columns`Jon Moss2017-11-131-0/+2
* | | | Relation merging should keep joining orderRyuta Kamizono2017-11-111-10/+8
* | | | Consolidate duplicated `to_ary`/`to_a` definitions in `Relation` and `Collect...Ryuta Kamizono2017-11-101-1/+1
* | | | Ensure `apply_join_dependency` for subqueries in `from` and `where`Ryuta Kamizono2017-11-102-0/+7
* | | | Move Attribute and AttributeSet to ActiveModelLisa Ugray2017-11-092-4/+4
| |/ / |/| |
* | | Ensure `apply_join_dependency` for `collection_cache_key` if eager-loading is...Ryuta Kamizono2017-11-062-3/+3
|/ /
* | Fix duplicate aliases when using both INNER/LEFT JOINsRyuta Kamizono2017-10-231-3/+4
* | [Active Record] require => require_relativeAkira Matsuda2017-10-215-15/+15