Correctly load task in rails app.