method

expand_from_hash

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