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

prefer Active Support's String#safe_constantize to #constantize #297

Closed flavorjones closed 8 months ago

flavorjones commented 8 months ago

In #296, @kbrock pointed out that Rails uses String#safe_constantize when finding a Class from a class name.

Functionally I think this will be identical, so maybe there's no good reason to make the change other than "following Rails practices as closely as we can".