zammad/lib/cache.rb
2022-05-12 19:21:55 +00:00

14 lines
413 B
Ruby

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