From 9de3d9dcecf1ba8b7c4aa19f921fbe78e6bcb872 Mon Sep 17 00:00:00 2001 From: Matthew Phelan Date: Fri, 15 Oct 2021 13:25:14 +0100 Subject: [PATCH] finishing touches --- app/models/case_log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/case_log.rb b/app/models/case_log.rb index 167925e8e..876e42766 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -21,7 +21,7 @@ class CaseLogValidator < ActiveModel::Validator # we want to validate all data fields. question_to_validate = options[:previous_page] if question_to_validate && respond_to?("validate_#{question_to_validate}") - public_send("validate_#{question_to_validate}", record) + public_send("validate_#{question_to_validate}", record) else # This assumes that all methods in this class other than this one are # validations to be run