changes as per rails 4