I am trying metaprogramming and want to dynamically create a class that inherits from ActiveRecord.
For example, I can do this:
Object.const_set(“Orders”, Class.new {def blah() 42 end }
I am trying metaprogramming and want to dynamically create a class that inherits from ActiveRecord.
For example, I can do this:
Object.const_set(“Orders”, Class.new {def blah() 42 end }