Check for rails 3 directly rather than simply querying whether a class is defined
Merge pull request #1 from anthuswilliams/master

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