Fix inspection task rails 3 change.