diff --git a/app/models/question.rb b/app/models/question.rb index 8b36f9a..d0f6ab7 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -86,7 +86,8 @@ accepts_nested_attributes_for :question_options, allow_destroy: true, reject_if: -> (a) { a[:text].blank? } - accepts_nested_attributes_for :annotations, allow_destroy: true + accepts_nested_attributes_for :annotations, allow_destroy: true, + reject_if: -> (a) { a[:text].blank? } # =====================