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.21k stars 179 forks source link

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

Closed flavorjones closed 11 months ago

flavorjones commented 11 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".