From 13390bb67a4abe2042fb2bbb92431f961a1742ea Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Mon, 20 Feb 2023 11:17:25 +0000 Subject: [PATCH] feat: instantiate suffixes --- app/models/validations/date_validations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/validations/date_validations.rb b/app/models/validations/date_validations.rb index 584206547..de264f07e 100644 --- a/app/models/validations/date_validations.rb +++ b/app/models/validations/date_validations.rb @@ -69,11 +69,11 @@ module Validations::DateValidations private def previous_collection_start_suffix - previous_collection_start_date.strftime("%y").to_i + @previous_collection_start_suffix ||= previous_collection_start_date.strftime("%y").to_i end def current_collection_start_suffix - current_collection_start_date.strftime("%y").to_i + @current_collection_start_suffix ||= current_collection_start_date.strftime("%y").to_i end def previous_collection_start_date