method
where_values_hash
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Relation
where_values_hash(relation_table_name = table_name)public
Returns a hash of where conditions.
User.where(name: 'Oscar').where_values_hash # => {name: "Oscar"}