module RailsConnector class CacheMiddleware def initialize(app) @app = app end def call(env) CmsBaseModel.cache do @app.call(env) end end end end