add support for rails 5