Sha256: 52ff7ef1b16179eb618a750968d114be7344ad371de3e90ccaaba10b100fdae7

Contents?: true

Size: 301 Bytes

Versions: 7

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

module Dynamoid
  module Middleware
    class IdentityMap
      def initialize(app)
        @app = app
      end

      def call(env)
        Dynamoid::IdentityMap.clear
        @app.call(env)
      ensure
        Dynamoid::IdentityMap.clear
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynamoid-3.5.0 lib/dynamoid/middleware/identity_map.rb
dynamoid-3.4.1 lib/dynamoid/middleware/identity_map.rb
dynamoid-3.4.0 lib/dynamoid/middleware/identity_map.rb
dynamoid-3.3.0 lib/dynamoid/middleware/identity_map.rb
dynamoid-3.2.0 lib/dynamoid/middleware/identity_map.rb
dynamoid-3.1.0 lib/dynamoid/middleware/identity_map.rb
dynamoid-3.0.0 lib/dynamoid/middleware/identity_map.rb