no validation if tabular export template
Co-authored-by: mfo <mfo@users.noreply.github.com>
This commit is contained in:
parent
ffd1a15d91
commit
6d074abc3f
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
class ExportTemplateValidator < ActiveModel::Validator
|
||||
def validate(export_template)
|
||||
return if !export_template.template_zip?
|
||||
|
||||
validate_all_templates(export_template)
|
||||
|
||||
return if export_template.errors.any? # no need to continue if the templates are invalid
|
||||
|
|
Loading…
Reference in a new issue