active-hash / active_hash

A readonly ActiveRecord-esque base class that lets you use a hash, a Yaml file or a custom file as the datasource
MIT License
1.2k stars 179 forks source link

Add model class and id to RecordNotFound error #212

Closed mizukami234 closed 4 years ago

mizukami234 commented 4 years ago

Added model class and id attributes to ActiveHash::RecordNotFound error for some situations that need more specific handling, like ActiveRecord::RecordNotFound.

kbrock commented 4 years ago

Looks like this is the same as #207

closing as a duplicate