rails 4.1 support

rails 4.1 support