Browse Source

feat: re-instantiate

pull/1318/head
natdeanlewissoftwire 2 years ago
parent
commit
bf58939e4f
  1. 14
      app/models/validations/date_validations.rb

14
app/models/validations/date_validations.rb

@ -69,31 +69,31 @@ module Validations::DateValidations
private private
def previous_collection_start_suffix 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 end
def current_collection_start_suffix 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 end
def previous_collection_start_date def previous_collection_start_date
FormHandler.instance.lettings_forms["previous_lettings"].start_date @previous_collection_start_date ||= FormHandler.instance.lettings_forms["previous_lettings"].start_date
end end
def previous_collection_end_date def previous_collection_end_date
FormHandler.instance.lettings_forms["previous_lettings"].end_date @previous_collection_end_date ||= FormHandler.instance.lettings_forms["previous_lettings"].end_date
end end
def current_collection_start_date def current_collection_start_date
FormHandler.instance.lettings_forms["current_lettings"].start_date @current_collection_start_date ||= FormHandler.instance.lettings_forms["current_lettings"].start_date
end end
def current_collection_end_date def current_collection_end_date
FormHandler.instance.lettings_forms["current_lettings"].end_date @current_collection_end_date ||= FormHandler.instance.lettings_forms["current_lettings"].end_date
end end
def next_collection_start_date def next_collection_start_date
FormHandler.instance.lettings_forms["next_lettings"].start_date @next_collection_start_date ||= FormHandler.instance.lettings_forms["next_lettings"].start_date
end end
def is_rsnvac_first_let?(record) def is_rsnvac_first_let?(record)

Loading…
Cancel
Save