aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/where_clause_factory.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-08-31 12:38:37 -0400
committerSean Griffin <sean@seantheprogrammer.com>2016-08-31 12:38:37 -0400
commit84efde740dc357de3ace08b2f2fd7a4a67dbd9bd (patch)
treec858f06849f59885cb736027d49f954de2ca59b4 /activerecord/lib/active_record/relation/where_clause_factory.rb
parent7ba3a48df5bfdc5e98506bb829f937e03b55a5b3 (diff)
downloadrails-84efde740dc357de3ace08b2f2fd7a4a67dbd9bd.tar.gz
rails-84efde740dc357de3ace08b2f2fd7a4a67dbd9bd.tar.bz2
rails-84efde740dc357de3ace08b2f2fd7a4a67dbd9bd.zip
Revert "Extract `PredicateBuilder::CaseSensitiveHandler`"
This reverts commit 3a1f6fe7b4a70bf0698b0684dd48ac712c6883b6. This commit takes the code in a direction that I am looking to avoid. The predicate builder should be purely concerned with AST construction as it matters to methods like `where`. Things like case sensitivity should continue to be handled elsewhere.
Diffstat (limited to 'activerecord/lib/active_record/relation/where_clause_factory.rb')
-rw-r--r--activerecord/lib/active_record/relation/where_clause_factory.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/where_clause_factory.rb b/activerecord/lib/active_record/relation/where_clause_factory.rb
index 122ab04c00..dc00149130 100644
--- a/activerecord/lib/active_record/relation/where_clause_factory.rb
+++ b/activerecord/lib/active_record/relation/where_clause_factory.rb
@@ -17,7 +17,7 @@ module ActiveRecord
attributes = klass.send(:expand_hash_conditions_for_aggregates, attributes)
attributes.stringify_keys!
- attributes, binds = predicate_builder.create_binds(attributes, other.last || {})
+ attributes, binds = predicate_builder.create_binds(attributes)
parts = predicate_builder.build_from_hash(attributes)
when Arel::Nodes::Node