Sha256: ca27664b3a91413561879868af2d267ff39c187c699f4b5bd38ba18777051e57

Contents?: true

Size: 234 Bytes

Versions: 5

Compression:

Stored size: 234 Bytes

Contents

#:enddoc:
module RailsConnector

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

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

end # module RailsConnector

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.beta.200.883.f5f063b lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.884.4bd86e6 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.869.9609b39 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.856.8c0fec5 lib/rails_connector/cache_middleware.rb
infopark_cloud_connector-6.8.0.beta.200.809.bdfa8c3 lib/rails_connector/cache_middleware.rb