rails 4 dirty fix