rails 4 support

@codekitchen