mongoid_identity_map 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
module MongoidIdentityMap
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer "mongoid_identity_map.initializer" do |app|
|
4
|
-
app.middleware.use MongoidIdentityMap::ClearMiddleware
|
4
|
+
app.middleware.use MongoidIdentityMap::ClearMiddleware unless Rails.env.test?
|
5
5
|
end
|
6
6
|
end
|
7
7
|
end
|