klass.rb 246 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module ApplicationController::Klass
  3. extend ActiveSupport::Concern
  4. included do
  5. def klass
  6. @klass ||= controller_path.classify.constantize
  7. end
  8. end
  9. end