diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-29 21:28:42 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-29 21:35:30 +0900 |
commit | 7ae26885d96daee3809d0bd50b1a440c2f5ffb69 (patch) | |
tree | c9991b23ddee1e77abb0e57c6fbf2cb7f756649c /activerecord/lib/active_record | |
parent | bee764965e80b0f4f0a15c31b340f245779a7d89 (diff) | |
download | rails-7ae26885d96daee3809d0bd50b1a440c2f5ffb69.tar.gz rails-7ae26885d96daee3809d0bd50b1a440c2f5ffb69.tar.bz2 rails-7ae26885d96daee3809d0bd50b1a440c2f5ffb69.zip |
Deprecate `expand_hash_conditions_for_aggregates`
This can not expand an array of aggregated objects correctly, and is no
longer used internally since 159b21b5.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/sanitization.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |