explicit check for rails3; don't just query whether a class is defined