Convert transitions in rails array to remove warnings in log