add support for rails 2