rails 4 compatability