Sha256: 30a30932cccb81dd3f5f69d16f29621320fe6ca6672c3c554ec0cf1a215b8dd0

Contents?: true

Size: 296 Bytes

Versions: 12

Compression:

Stored size: 296 Bytes

Contents

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

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

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
lookout-mongo_mapper-0.11.3 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.11.2 lib/mongo_mapper/middleware/identity_map.rb
jamieorc-mongo_mapper-0.11.1.1 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.11.1 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.11.0 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.10.1 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.10.0 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.9.2 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.9.1 lib/mongo_mapper/middleware/identity_map.rb
mongo_mapper-0.9.0 lib/mongo_mapper/middleware/identity_map.rb
ign-mongo_mapper-0.8.6.2 lib/mongo_mapper/middleware/identity_map.rb
ign-mongo_mapper-0.8.6.1 lib/mongo_mapper/middleware/identity_map.rb