base.rb 372 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Common::ModelClass::Base < Sequencer::Unit::Common::Provider::Attribute
  3. provides :model_class
  4. private
  5. def model_class
  6. @model_class ||= class_name.constantize
  7. end
  8. def class_name
  9. self.class.name.sub('Sequencer::Unit::Common::ModelClass', '')
  10. end
  11. end