method
expand_from_hash
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::PredicateBuilder
expand_from_hash(attributes)protected
No documentation available.
# File activerecord/lib/active_record/relation/predicate_builder.rb, line 83
def expand_from_hash(attributes)
return ["1=0"] if attributes.empty?
attributes.flat_map do |key, value|
if value.is_a?(Hash)
associated_predicate_builder(key).expand_from_hash(value)
else
expand(key, value)
end
end
end