def update
    @log.attributes = work_log_params
    @log.project = @task.project

    if @log.save