mongoid/mongoid — comment on commit 216314d49fba340812a12efe071698baeef06f32
File:  line 0
By romanbsd:

Why is it not better to sanitize the method name and always use class_eval? That will surely look cleaner, and besides, the method name with invalid characters which is created with define_method is available only through #send.
I added :foreign_key => "parent_id" to spec/app/models/game.rb in my working directory, and all specs still pass (I'm talking about this patch: https://gist.github.com/1594009) . What else should I test?