object.rb 293 B

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