adding rails 4 support