Sha256: 3f3a34fb27f44a95792648438b525e5740526d31ed064e893fe64cb015df9078

Contents?: true

Size: 202 Bytes

Versions: 6

Compression:

Stored size: 202 Bytes

Contents

module RailsConnector
  class CacheMiddleware #:nodoc:
    def initialize(app)
      @app = app
    end

    def call(env)
      CmsBaseModel.cache do
        @app.call(env)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
infopark_fiona_connector-6.8.0.210.ed204b0 lib/rails_connector/cache_middleware.rb
infopark_fiona_connector-6.8.0.110.6570b45 lib/rails_connector/cache_middleware.rb
infopark_fiona_connector-6.8.0.72.d18d096 lib/rails_connector/cache_middleware.rb
infopark_fiona_connector-6.8.0.23.da7f96b lib/rails_connector/cache_middleware.rb
infopark_fiona_connector-6.8.0.16.def5e85 lib/rails_connector/cache_middleware.rb
infopark_fiona_connector-6.8.0.beta.200.891.647580e lib/rails_connector/cache_middleware.rb