Permalink
Browse files

Middleware is now optional as it turns IM on.

  • Loading branch information...
1 parent aaadd84 commit fad2ccca51304bc4def88c14834986f76f3a4e03 @jnunemaker jnunemaker committed Jul 9, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 lib/mongo_mapper/railtie.rb
@@ -28,10 +28,5 @@ class Railtie < Rails::Railtie
MongoMapper.setup(config, Rails.env, :logger => Rails.logger)
end
end
-
- # Clear the identity map after each request
- initializer "mongo_mapper.clear_identity_map" do |app|
- app.config.middleware.use 'MongoMapper::Middleware::IdentityMap'
- end
end
end

0 comments on commit fad2ccc

Please sign in to comment.