Sha256: 61bff51a8e2a75b401134772be84c5585b226418526a931493cf2a18df6b65b7

Contents?: true

Size: 246 Bytes

Versions: 1

Compression:

Stored size: 246 Bytes

Contents

module RailsConnector

class CacheMiddleware
  def initialize(app)
    @app = app
  end

  def call(env)
    CmsBackend.instance.begin_caching
    @app.call(env)
  ensure
    CmsBackend.instance.end_caching
  end
end

end # module RailsConnector

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
infopark_cloud_connector-7.1.0 lib/rails_connector/cache_middleware.rb