Fix sanitize_sql_hash_for_conditions deprecation warning in Rails 4.2