Flowdock
method

where_values_hash

Importance_0
v3.2.8 - 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 461
    def where_values_hash
      equalities = with_default_scope.where_values.grep(Arel::Nodes::Equality).find_all { |node|
        node.left.relation.name == table_name
      }

      Hash[equalities.map { |where| [where.left.name, where.right] }]
    end
Register or log in to add new notes.