cache.rb 413 B

1234567891011121314
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. Cache = Class.new do
  3. def method_missing(method, ...)
  4. super if !respond_to_missing? method
  5. ActiveSupport::Deprecation.warn("The method 'Cache.#{method}' is deprecated. Use 'Rails.cache.#{method}' instead.")
  6. Rails.cache.send(method, ...)
  7. end
  8. def respond_to_missing?(...)
  9. Rails.cache.respond_to?(...)
  10. end
  11. end.new