diff options
| author | Nick LaMuro <nicklamuro@gmail.com> | 2017-01-06 17:49:19 -0600 |
|---|---|---|
| committer | Nick LaMuro <nicklamuro@gmail.com> | 2017-01-06 17:49:19 -0600 |
| commit | b42e594a43e00d00b018868481927584d358f756 (patch) | |
| tree | 24b80a207fe66787179386c35837306e57cfa903 /activemodel/lib/active_model/validations/presence.rb | |
| parent | 98c6e4e56ca2a8f9f987e12815f7cdf66e5f1485 (diff) | |
| download | rails-b42e594a43e00d00b018868481927584d358f756.tar.gz rails-b42e594a43e00d00b018868481927584d358f756.tar.bz2 rails-b42e594a43e00d00b018868481927584d358f756.zip | |
Add failing test for where with joins
This will cause a failure with the changes from 8e2e5f9:
https://github.com/rails/rails/commit/8e2e5f9e3d1f434e265dc104ea9b00ff75702fc3
With the `singularize` call that is being done in that method when there
is multiple nestings of associations (JOIN calling a JOIN) and the
`stringify_keys!` is only called once here:
https://github.com/rails/rails/blob/21e5fd4/activerecord/lib/active_record/relation/where_clause_factory.rb#L16
And not in the subsequent recursion in `.predicate_builder`
Diffstat (limited to 'activemodel/lib/active_model/validations/presence.rb')
0 files changed, 0 insertions, 0 deletions
