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
Given:
class Banana end
You can fetch the class in plain Ruby with:
Object.const_get 'Banana' => Banana
or if you're using Rails:
'Banana'.constantize => Banana