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.19k stars 178 forks source link

Bugfix: Allow chaining with same attribute #271

Closed gastronleroux closed 1 year ago

gastronleroux commented 1 year ago

Expected behavior:

Country.where(id: 1).where(id: 2) # []

Current behavior:


Country.where(id: 1).where(id: 2) # [#< Country id=2>]
kbrock commented 1 year ago

Thank you for helping us with this solution. Going with #268 instead