Adding support for rails version < 2.2. Fixes #82