fix load_tasks for rails 4