Fix bug in ActiveRecord::Sanitization#sanitize_sql_hash_for_conditions

Currently throwing NoMethodError when using associations because method is always passing Class  to PredicateBuilder#build_from_hash.