Open Qqwy opened 9 years ago
I think that it would be very helpful to be able to use
some_collection.find(my_object_id)
which would basically do the same thing as
some_collection.where(id: my_object_id).first
or is there a better way?
Similarly, a more broad find_by(hash_of_arguments) would also be helpful:
find_by(hash_of_arguments)
houses.first.rooms.find_by(type:"Bedroom", occupant: some_user)
Of course, it might be that this functionality (Or something that works in a way similar to what was outlined above) already exists, and that I just cannot find it in the Docs.
I think that it would be very helpful to be able to use
which would basically do the same thing as
or is there a better way?
Similarly, a more broad
find_by(hash_of_arguments)
would also be helpful:Of course, it might be that this functionality (Or something that works in a way similar to what was outlined above) already exists, and that I just cannot find it in the Docs.