Changed module_eval to class_eval for Table adapter class