Flowdock
method

where_values_hash

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
where_values_hash() public

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.rb, line 319
    def where_values_hash
          Hash[@where_values.find_all { |w|
            w.respond_to?(:operator) && w.operator == :==
          }.map { |where|
            [where.operand1.name,
             where.operand2.respond_to?(:value) ?
             where.operand2.value : where.operand2]
        }]
    end
Register or log in to add new notes.