Provides `hashed` method to ActiveRecord dataset, that return hash where keys is value of some attribute of object (default – primary key of used table).
Rinat Shaykhutdinov
gem "hashed", "~> 0.0.5"