Avoid a NoMethodError exception when running ActiveRecord edge test cases
Fix workaround with NoMethodError bug by extending ActiveRecord::AttributeMethods::ClassMethods instead of ActiveRecord::Base
Split SexyScopes::ActiveRecord into 2 modules: ClassMethods and DynamicMethods, rescue from ActiveRecord::StatementInvalid in DynamicMethods