priority.rb 368 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Service::Translation::Search::Collector::Priority < Service::Translation::Search::Collector
  3. private
  4. def list_sources
  5. Ticket::Priority.pluck(:name)
  6. end
  7. def search_sources
  8. Ticket::Priority.where("name #{like_operator} :query", query: like_query).pluck(:name)
  9. end
  10. end