Is there a way to pull records from activerecord in a hash already indexed by id instead of an array?
This is what im currently doing:
results = {}
Table.select { |current| results[current.id] = current }
Im assuming that there has to be a method that does that?
Or:
if you’re into the whole brevity thing.