How to convert a string to a constant in Ruby?

Object.const_get("User")

No need to require ActiveSupport.

Leave a Comment