add support for rails up to 3.2.20