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