Browse Source

feat: instantiate suffixes

pull/1318/head
natdeanlewissoftwire 2 years ago
parent
commit
13390bb67a
  1. 4
      app/models/validations/date_validations.rb

4
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

Loading…
Cancel
Save