support for rails >= 3.1 (fix #2); version bump