aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Expand)AuthorAgeFilesLines
* 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
* Fix `COUNT(DISTINCT ...)` for `GROUP BY` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-10-141-1/+1
* Joined tables in association scope doesn't use the same aliases with the pare...Ryuta Kamizono2017-10-091-11/+11
* Remove meaningless named `construct_relation_for_association_calculations`Ryuta Kamizono2017-10-092-6/+3
* Fix `relation.exists?` with has_many through associationsRyuta Kamizono2017-10-091-4/+4
* Remove passing redundant `self` to internal `apply_join_dependency` etcRyuta Kamizono2017-10-091-13/+12
* Decouple building `AliasTracker` from `JoinDependency`Ryuta Kamizono2017-10-083-3/+5
* Use __callee__ to pass alias instead of original method namemeganemura2017-10-051-1/+1
* Treat `Set` as an `Array` in `Relation#where`Sean Griffin2017-09-261-0/+1
* Ensure `1 AS one` for SQL Server with calculations.Ken Collins2017-09-221-1/+1
* Remove unused explicit delegation to `klass` in `relation`Ryuta Kamizono2017-09-141-2/+1
* Don't use `quoted_table_name` in `limited_ids_for`Ryuta Kamizono2017-09-141-1/+3
* `quoted_table_name` doesn't respect table aliasRyuta Kamizono2017-09-141-1/+1
* Make `in_batches` queries to preparableRyuta Kamizono2017-09-141-3/+10
* PERF: Recover `ActiveRecord::pluck` performance.Guo Xiang Tan2017-09-061-14/+17
* Merge pull request #30377 from keepcosmos/delegate-missing-methodsMatthew Draper2017-08-311-2/+2
|\
| * Delegate :rindex, :slice, :rotate to 'records'keepcosmos2017-08-241-2/+2
* | Should be appear deprecation message for every call (#29649)Ryuta Kamizono2017-08-271-8/+0
* | Should work inverse association when eager loadingRyuta Kamizono2017-08-251-10/+1
|/
* Merge pull request #30169 from awortham/awortham/awortham/fix-sql-distinct-bugRafael Mendonça França2017-08-141-0/+3
|\
| * Ensure sum honors distinct on has_many throughAaron Wortham2017-08-141-0/+3
* | Completes ActiveRecord::Batches.find_each example [ci skip]Marc Rendl Ignacio2017-08-131-1/+6
|/
* Merge pull request #30126 from chopraanmol1/support_for_has_many_and_has_one_...Rafael França2017-08-111-2/+2
|\
| * Changed join_fk private method to join_foreign_key public methodchopraanmol12017-08-091-1/+1
| * Currently if relation object are passed to where condition for has one or has...chopraanmol12017-08-081-2/+2
* | Merge pull request #29720 from gaurish/ar_find_error_message_improvementRafael França2017-08-111-3/+3
|\ \ | |/ |/|
| * Return Not found Ids in ActiveRecord::NotFoundGaurish Sharma2017-07-291-3/+3
* | Merge pull request #29914 from kamipo/relation_merger_should_not_fill_empty_v...Matthew Draper2017-08-022-19/+22
|\ \