aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation
Commit message (Expand)AuthorAgeFilesLines
* Add a test case for #20802Ryuta Kamizono2017-04-131-0/+5
* Remove duplicated "test" prefixRyuta Kamizono2017-04-071-1/+1
* Use `SET CONSTRAINTS` for `disable_referential_integrity` without superuser p...Fumiaki MATSUSHIMA2017-03-262-3/+3
* Simply delegate `as_json` to `records`Ryuta Kamizono2017-03-101-1/+1
* Delegate `to_sentence` and `to_fomatted_s` to `records`kenta-s2017-02-041-1/+2
* class Foo < Struct.new(:x) creates an extra unneeded anonymous classAkira Matsuda2017-01-131-1/+1
* `self.` is not needed when calling its own instance methodAkira Matsuda2017-01-051-1/+1
* Revert "Merge pull request #21233 from mtsmfm/disable-referential-integrity-w...Rafael Mendonça França2017-01-032-3/+3
* Merge pull request #21233 from mtsmfm/disable-referential-integrity-without-s...Rafael França2017-01-032-3/+3
|\
| * Use `SET CONSTRAINTS` for `disable_referential_integrity` without superuser p...Fumiaki MATSUSHIMA2016-12-032-3/+3
* | Remove deprecated `#uniq`, `#uniq!`, and `#uniq_value`Ryuta Kamizono2016-12-301-17/+1
* | assert_equal takes expectation firstAkira Matsuda2016-12-261-1/+1
|/
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-6/+6
* improve error message when include assertions failMichael Grosser2016-09-162-4/+4
* Change require order to come `require "models/post"` before `require "models/...Yasuo Honda2016-09-021-1/+1
* Do not handle as an associated predicate if a table has the columnRyuta Kamizono2016-08-161-1/+1
* Add three new rubocop rulesRafael Mendonça França2016-08-163-4/+4
* Use `ActiveRecord::TestCase` rather than `ActiveSupport::TestCase` in AR test...Ryuta Kamizono2016-08-111-1/+1
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
* normalizes indentation and whitespace across the projectXavier Noria2016-08-062-10/+10
* modernizes hash syntax in activerecordXavier Noria2016-08-063-17/+17
* applies new string literal convention in activerecord/testXavier Noria2016-08-069-121/+121
* No need `public_send`Ryuta Kamizono2016-07-171-2/+2
* Add missing test case for record_fetched_greater_than configPrathamesh Sonpatki2016-04-111-11/+23
* Merge pull request #22365 from phuibonhoa/phuibonhoa/polymorphic_where_multip...Sean Griffin2016-02-171-1/+13
|\
| * Fixed `where` for polymorphic associations when passed an array containing di...Philippe Huibonhoa2016-02-161-1/+13
* | Show proper error message when a non-relation object is passed to AR::Relatio...Prathamesh Sonpatki2016-02-171-0/+6
|/
* Typos in AR testsAkira Matsuda2016-02-041-2/+2
* Defer Arel attribute lookup to the model classMatthew Draper2016-02-041-0/+4
* Properly include the `from` clause when merging relationsSean Griffin2016-01-141-0/+7
* Improve error message for #or when it is structurally incompatibleRafael Mendonça França2016-01-131-1/+3
* Revert "Change `WhereClause#merge` to same named columns on diff tables"Sean Griffin2016-01-121-15/+2
* Change `WhereClause#merge` to same named columns on diff tablesSean Griffin2016-01-121-2/+15
* Ensure `Relation` responds to `shuffle`Sean Griffin2015-12-011-1/+1
* Remove blanket array delegation from `Relation`Sean Griffin2015-11-231-6/+0
* Define `sanitize_sql_for_order` for AR and use it inside `preprocess_order_args`yui-knk2015-11-021-0/+4
* Alias left_joins to left_outer_joinsTakashi Kokubun2015-10-311-1/+1
* Suppress warnings of `assigned but unused variable`yui-knk2015-10-171-2/+0
* `where` raises ArgumentError on unsupported types.Jake Worth2015-10-161-0/+6
* Fix AC::Parameters not being sanitized for query methods.Guo Xiang Tan2015-10-021-0/+26
* Removed mocha from Active Record Part 2Ronak Jangir2015-09-161-3/+4
* Add test to 57daaefRafael Mendonça França2015-05-281-1/+1
* Remove unused variableArun Agrawal2015-05-261-1/+1
* deprecate `Relation#uniq` use `Relation#distinct` instead.Yves Senn2015-05-261-4/+13
* Add `config.active_record.warn_on_records_fetched_greater_than` optionJason Nochlin2015-03-251-0/+28
* Respect custom primary keys for associations in `Relation#where`Sean Griffin2015-02-041-1/+37
* Post.all.or(anything) == Post.allSean Griffin2015-01-292-5/+5
* Bring the implementation of Relation#or up to speedSean Griffin2015-01-282-3/+26
* Added #or to ActiveRecord::RelationMatthew Draper2015-01-281-0/+81
* Remove Relation#bind_paramsSean Griffin2015-01-271-2/+2