element.rb 255 B

123456789
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class ObjectManager::Element
  3. include ::Mixin::HasBackends
  4. def self.for_object(object)
  5. "#{name}::#{object}".safe_constantize || ObjectManager::Element::Backend
  6. end
  7. end