requiring activerecord in a class