Commit 449f7a42 by Arjun Singh

Enable the identity map.

parent ac7a0a32
...@@ -51,8 +51,12 @@ if RACK_ENV.to_s != "test" # disable api_key auth in test environment ...@@ -51,8 +51,12 @@ if RACK_ENV.to_s != "test" # disable api_key auth in test environment
end end
end end
# these files must be required in order # Enable the identity map. The middleware ensures that the identity map is
# cleared for every request.
Mongoid.identity_map_enabled = true
use Rack::Mongoid::Middleware::IdentityMap
# these files must be required in order
require './api/search' require './api/search'
require './api/commentables' require './api/commentables'
require './api/tags' require './api/tags'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment