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

Ensure field_names contains only symbols #313

Closed kbrock closed 3 weeks ago

kbrock commented 1 month ago

All public methods that take a field name will convert it to a symbol. All internal methods can assume that field_name is a symbol

In response to a bug that was uncovered in #311 (test is red-green)

kbrock commented 3 weeks ago

Thanks for the comment. Didn't see that one (heh - obviously or I wouldn't have created this one)

kbrock commented 3 weeks ago

defer to #312