|
|
@ -25,7 +25,7 @@ class CaseLogsController < ApplicationController |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def update |
|
|
|
def update |
|
|
|
if case_log = CaseLog.find_by(id: params[:id]) |
|
|
|
if (case_log = CaseLog.find_by(id: params[:id])) |
|
|
|
if case_log.update(api_case_log_params) |
|
|
|
if case_log.update(api_case_log_params) |
|
|
|
render json: case_log, status: :ok |
|
|
|
render json: case_log, status: :ok |
|
|
|
else |
|
|
|
else |
|
|
@ -64,7 +64,7 @@ class CaseLogsController < ApplicationController |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def destroy |
|
|
|
def destroy |
|
|
|
if case_log = CaseLog.find_by(id: params[:id]) |
|
|
|
if (case_log = CaseLog.find_by(id: params[:id])) |
|
|
|
if case_log.discard |
|
|
|
if case_log.discard |
|
|
|
head :no_content |
|
|
|
head :no_content |
|
|
|
else |
|
|
|
else |
|
|
|