macro.rb 347 B

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