Sha256: 5da6739a3deddc90315a45d76eeec7fa63aaf4a5f5fdd70ae9af43d10934b98e

Contents?: true

Size: 228 Bytes

Versions: 8

Compression:

Stored size: 228 Bytes

Contents

#:enddoc:
module RailsConnector

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

  def call(env)
    Cache.begin_context
    @app.call(env)
  ensure
    Cache.end_context
  end
end

end # module RailsConnector

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.beta.200.785.05d4af9 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.744.99f67fc lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.720.44fbabd lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.713.e5c3150 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.681.7c84f4a lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.663.ceecdee lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.650.7c93155 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.621.4c8e1b0 lib/rails_connector/cache_middleware.rb