state.rb 359 B

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