Flowdock
method

expand_from_hash

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActiveRecord::PredicateBuilder
expand_from_hash(attributes) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.