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