rails 4 compatibility

sets rails >= 3.1