Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
449f7a42
Commit
449f7a42
authored
May 12, 2013
by
Arjun Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the identity map.
parent
ac7a0a32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
app.rb
+5
-1
No files found.
app.rb
View file @
449f7a42
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment