method
build_where
build_where(opts, other = [])
public
Hide source
# File activerecord/lib/active_record/relation/query_methods.rb, line 167 def build_where(opts, other = []) case opts when String, Array @klass.send(:sanitize_sql, other.empty? ? opts : ([opts] + other)) when Hash attributes = @klass.send(:expand_hash_conditions_for_aggregates, opts) PredicateBuilder.new(table.engine).build_from_hash(attributes, table) else opts end end