Previous attempt boned rails3, so convert to an if/else
Merge pull request #6 from paulingham/rails2

Previous attempt boned rails3, so convert to an if/else