app/models/concept/validations.rb
# top term and broader relations are mutually exclusive
top term and broader relations are mutually exclusive
top term and broader relations are mutually exclusive
def exclusive_top_term
      if validatable_for_publishing?
        if top_term? && broader_relations.any?
          errors.add :base, I18n.t('txt.models.concept.top_term_exclusive_error')
        end
      end
    end
def exclusive_top_term if validatable_for_publishing? if top_term? && broader_relations . any? errors . add :base , I18n . t ( 'txt.models.concept.top_term_exclusive_error' ) end end end
top term and broader relations are mutually exclusive
top term and broader relations are mutually exclusive