Rails.logger.info("Validation #{meth} already exists for #{form.start_date.year}")
Rails.logger.info("Validation #{meth} already exists for #{form.start_date.year}")
next
next
end
end
@ -168,14 +168,6 @@ private
required:%w[error_message field],
required:%w[error_message field],
},
},
},
},
from:{
type::number,
description:"the year from which the validation starts. If this validation runs for logs with a startdate after a certain year, specify that year here, only if it is not specified in the validation method, leave this field blank",
},
to:{
type::number,
description:"the year in which the validation ends. If this validation runs for logs with a startdate before a certain year, specify that year here, only if it is not specified in the validation method, leave this field blank",
},
validation_type:{
validation_type:{
type::string,
type::string,
enum:%w[presence format minimum maximum range inclusion length other],
enum:%w[presence format minimum maximum range inclusion length other],
@ -273,8 +265,7 @@ Look at these helper methods where needed to understand what is being checked in
Rails.logger.info("Validation #{validation_depends_on_hash.keys.first} already exists for #{page_the_validation_applied_to.questions.first.id} for start year #{form.start_date.year}")
Rails.logger.info("Validation #{validation_depends_on_hash.keys.first} already exists for #{page_the_validation_applied_to.questions.first.id} for start year #{form.start_date.year}")
return
return
end
end
@ -362,8 +352,7 @@ Look at these helper methods where needed to understand what is being checked in