From 7ae26885d96daee3809d0bd50b1a440c2f5ffb69 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 29 Jan 2018 21:28:42 +0900 Subject: Deprecate `expand_hash_conditions_for_aggregates` This can not expand an array of aggregated objects correctly, and is no longer used internally since 159b21b5. --- activerecord/lib/active_record/sanitization.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record/sanitization.rb') diff --git a/activerecord/lib/active_record/sanitization.rb b/activerecord/lib/active_record/sanitization.rb index 173794b8f4..f1ca79ebab 100644 --- a/activerecord/lib/active_record/sanitization.rb +++ b/activerecord/lib/active_record/sanitization.rb @@ -169,6 +169,7 @@ module ActiveRecord end expanded_attrs end + deprecate :expand_hash_conditions_for_aggregates def replace_bind_variables(statement, values) raise_if_bind_arity_mismatch(statement, statement.count("?"), values.size) -- cgit v1.2.3