Sha256: e68073ff6341150e293cb9c04b0fce1e1fbd14148091d971c1cf6ef418a3fd24

Contents?: true

Size: 283 Bytes

Versions: 12

Compression:

Stored size: 283 Bytes

Contents

module Rails
  module DataMapper
    module Middleware

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

        def call(env)
          ::DataMapper.repository do
            @app.call(env)
          end
        end
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dm-rails-1.1.0 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.1.0.rc3 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.1.0.rc2 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.1.0.rc1 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.4 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.3 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.2 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.1 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.0 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.0.rc3 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.0.rc2 lib/dm-rails/middleware/identity_map.rb
dm-rails-1.0.0.rc1 lib/dm-rails/middleware/identity_map.rb