type.rb 250 B

12345678910
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Link::Type < ApplicationModel
  3. include ChecksHtmlSanitized
  4. validates :name, presence: true
  5. validates :note, length: { maximum: 250 }
  6. sanitized_html :note
  7. end