aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation.rb
Commit message (Expand)AuthorAgeFilesLines
* Using subselect for `delete_all` with `limit` or `offset`Ryuta Kamizono2017-12-191-4/+4
* Using subselect generated by the connection adapter for `update_all` with `of...Ryuta Kamizono2017-12-191-1/+1
* Fix inheritance object creation from relationRyuta Kamizono2017-12-131-8/+18
* Make `sanitize_sql_` methods publicyuuji.yaginuma2017-12-131-1/+1
* Revert "Merge pull request #31006 from rails/kamipo/ordinal_methods_should_re...eileencodes2017-11-261-1/+0
* Merge pull request #31006 from rails/kamipo/ordinal_methods_should_respect_lo...Eileen M. Uchitelle2017-11-251-0/+1
|\
| * Ordinal methods should respect loaded recordsRyuta Kamizono2017-10-281-0/+1
* | Avoid creating extra `relation` and `build_arel` in `_create_record` and `_up...Ryuta Kamizono2017-11-171-61/+0
* | Consolidate duplicated `to_ary`/`to_a` definitions in `Relation` and `Collect...Ryuta Kamizono2017-11-101-1/+2
* | Ensure `apply_join_dependency` for `update_all` and `delete_all` if eager-loa...Ryuta Kamizono2017-11-061-0/+10
|/
* Joined tables in association scope doesn't use the same aliases with the pare...Ryuta Kamizono2017-10-091-1/+2
* Decouple building `AliasTracker` from `JoinDependency`Ryuta Kamizono2017-10-081-0/+4
* Merge pull request #30619 from jagthedrummer/jeremy/instrumentation-payload-n...Eileen M. Uchitelle2017-09-201-4/+4
|\
| * Update payload names for `sql.active_record` to be more descriptive.Jeremy Green2017-09-201-4/+4
* | Place class level `update`, `destroy`, and `delete` in `Persistence::ClassMet...Ryuta Kamizono2017-09-181-94/+0
|/
* Remove unused explicit delegation to `klass` in `relation`Ryuta Kamizono2017-09-141-1/+1
* Should work inverse association when eager loadingRyuta Kamizono2017-08-251-2/+14
* Restore `to_sql` to return only SQL (#29945)Ryuta Kamizono2017-08-181-2/+1
* Use `predicate_builder.build_bind_attribute` wherever possibleRyuta Kamizono2017-07-281-2/+2
* Merge pull request #29848 from kamipo/fix_distinct_count_with_order_and_limitRafael França2017-07-241-0/+4
|\
| * Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-07-221-0/+4
* | Refactor Active Record to let Arel manage bind paramsSean Griffin2017-07-241-17/+11
|/
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Fix unscoping `default_scope` in STI associationsRyuta Kamizono2017-07-191-0/+4
* Don't cache `scope_for_create`Ryuta Kamizono2017-07-161-2/+2
* Merge pull request #29809 from kamipo/remove_unused_ivarsKasper Timm Hansen2017-07-161-2/+1
|\
| * Remove unused `@last`, `@order_clause`, and `@join_dependency`Ryuta Kamizono2017-07-161-2/+1
* | Fix `create_with` using both string and symbolRyuta Kamizono2017-07-161-1/+1
|/
* Skip query cache for in_batches and friendsEugene Kenny2017-07-061-13/+25
* 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
* Fix to scoping is correctly restoredRyuta Kamizono2017-06-291-1/+1
* `Relation#locked?` should not build arelRyuta Kamizono2017-06-201-1/+1
* Merge pull request #29003 from kamipo/delegate_ast_and_locked_to_arel_explicitlyMatthew Draper2017-05-281-0/+1
|\
| * Delegate `ast` and `locked` to `arel` explicitlyRyuta Kamizono2017-05-061-0/+1
* | Merge pull request #29237 from mohitnatoo/arel-update-docRafael França2017-05-261-3/+3
|\ \
| * | [ci skip] Changed sentence formation for ActiveRecordRelation#updateMohit Natoo2017-05-261-3/+3
| |/
* | Remove unused `left_joins_values` generationRyuta Kamizono2017-05-231-1/+1
* | Don't eager loading if unneeded for `FinderMethods#exists?`Ryuta Kamizono2017-05-111-2/+1
|/
* Load only needed records on ActiveRecord::Relation#inspectHendy Tanata2017-03-281-1/+3
* Simply delegate `as_json` to `records`Ryuta Kamizono2017-03-101-4/+0
* Remove deprecation of using ActiveRecord::Base instance in .updateRafael Mendonça França2017-01-031-2/+1
* Remove deprecated `#uniq`, `#uniq!`, and `#uniq_value`Ryuta Kamizono2016-12-301-9/+0
* Remove deprecated conditions parameter from #delete_allRafael Mendonça França2016-12-291-19/+11
* Remove deprecated conditions parameter from `#destroy_all`Rafael Mendonça França2016-12-291-10/+2
* fixing update_all and delete_all when chained with left_joins. fixes #27192Diego Plentz2016-11-271-2/+6
* docs, add `update_all` example with SQL fragment. [ci skip]Yves Senn2016-11-161-0/+3
* Avoid `build_preloader` if preloading is not neededRyuta Kamizono2016-11-141-2/+3
* Remove outdated "#TODO: Fix for binds." comment [ci skip]Ryuta Kamizono2016-09-111-1/+0
* Ensure that inverse associations are set before running callbacksSean Griffin2016-08-311-4/+4