fix ActiveRecord check so it is not required