Check for rails 3 directly rather than simply querying whether a class is defined