added rails patch