Change ActiveRecord::DynamicMethods to eagerly define all methods at once, avoiding multiple (costly) calls to `class_eval`

More on this here: http://tenderlovemaking.com/2013/03/03/dynamic_method_definitions.html
More demanding/precise specs for ActiveRecord::DynamicMethods