Browse Source

Linting

pull/51/head
baarkerlounger 3 years ago
parent
commit
5248a96db3
  1. 4
      app/controllers/case_logs_controller.rb
  2. 2
      app/models/form_handler.rb

4
app/controllers/case_logs_controller.rb

@ -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

2
app/models/form_handler.rb

@ -12,8 +12,8 @@ class FormHandler
@forms[form] ||= Form.new(form) @forms[form] ||= Form.new(form)
end end
private private
def get_all_forms def get_all_forms
forms = {} forms = {}
directories = ["config/forms", "spec/fixtures/forms"] directories = ["config/forms", "spec/fixtures/forms"]

Loading…
Cancel
Save