I am trying to create a new class to that will inherit from ActiveRecord::Base the class needs to be dynamically generated from a string
ActiveRecord::Base
\"gener
If you're using Rails, it provides a method called #constantize that will work:
#constantize
irb(main):017:0> Object.const_get 'House::Owns' NameError: wrong constant name House::Owns 'House::Owns'.constantize => House::Owns