Add task support for rails 3; CR: DF