aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation
Commit message (Expand)AuthorAgeFilesLines
* Fix failing testsSean Griffin2017-07-251-1/+1
* Refactor Active Record to let Arel manage bind paramsSean Griffin2017-07-244-60/+52
* Merge pull request #29732 from kirs/frozen-activerecordRafael França2017-07-219-0/+18
|\
| * Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-199-0/+18
* | Revert "Extract `bind_param` and `bind_attribute` into `ActiveRecord::TestCase`"Sean Griffin2017-07-212-11/+19
|/
* Bugfix: unscope(where: [columns]) would not remove the correct binds sometimesMaxime Lapointe2017-07-131-1/+17
* Extract `FakeKlass` in `relation_test.rb` and `relation/mutation_test.rb`Ryuta Kamizono2017-07-111-33/+5
* Skip query cache for in_batches and friendsEugene Kenny2017-07-061-1/+6
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-029-9/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-019-0/+9
* Deprecate delegating to `arel` in `Relation`Ryuta Kamizono2017-06-291-0/+15
* Merge pull request #29415 from kamipo/remove_unused_defined_associationGuillermo Iguaran2017-06-161-1/+1
|\
| * Remove unused defined associationRyuta Kamizono2017-06-111-1/+1
* | Don't require 'unscope' to be the same for both sides of a 'or' relation.Dan Sherson2017-06-151-0/+25
|/
* Prevent making bind param if casted value is nilRyuta Kamizono2017-05-311-1/+5
* Merge pull request #29003 from kamipo/delegate_ast_and_locked_to_arel_explicitlyMatthew Draper2017-05-281-1/+1
|\
| * Delegate `ast` and `locked` to `arel` explicitlyRyuta Kamizono2017-05-061-1/+1
* | Remove unused `left_joins_values` generationRyuta Kamizono2017-05-231-1/+1
|/
* Remove unused `DelegationTest#call_method`Ryuta Kamizono2017-05-061-27/+7
* Extract `bind_param` and `bind_attribute` into `ActiveRecord::TestCase`Ryuta Kamizono2017-05-042-18/+10
* Restore `fixtures :author_addresses`Ryuta Kamizono2017-04-272-3/+3
* Revert "Merge pull request #27636 from mtsmfm/disable-referential-integrity-w...Rafael Mendonça França2017-04-262-3/+3
* Replace \Z to \zRyuta Kamizono2017-04-241-1/+1
* 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
|/