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 }
So I’m trying to perform a query on the model’s great granchildren. The relationship is like this…
match>match>match>player
And tournament model:
class Tournament :destroy
has