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
cd5ae4f3
Commit
cd5ae4f3
authored
Aug 10, 2016
by
Toby Lawrence
Committed by
GitHub
Aug 10, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into test/upgrade-to-mongodb-30
parents
dca1d8d3
7584dfbd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
app.rb
+4
-4
config.ru
+2
-0
No files found.
app.rb
View file @
cd5ae4f3
...
...
@@ -88,8 +88,8 @@ require 'yajl/json_gem'
# Note that BSON was moved from Moped::BSON::ObjectId to BSON::ObjectId
module
BSON
class
ObjectId
def
to_json
self
.
to_s
.
to_json
def
as_json
(
options
=
{})
self
.
to_s
end
end
end
...
...
@@ -100,8 +100,8 @@ class Time
# object.
# Note that this was done to prevent milliseconds from showing up in the JSON response thus breaking
# API compatibility for downstream clients.
def
to_json
(
*
)
'"'
+
utc
().
strftime
(
"%Y-%m-%dT%H:%M:%SZ"
)
+
'"'
def
as_json
(
options
=
{}
)
utc
().
strftime
(
"%Y-%m-%dT%H:%M:%SZ"
)
end
end
...
...
config.ru
View file @
cd5ae4f3
...
...
@@ -10,6 +10,8 @@
# More conversation at https://github.com/edx/cs_comments_service/pull/146
# -Nov 18th, 2015
puts
"Loading config.ru."
require
"rack-timeout"
use
Rack
::
Timeout
# Call as early as possible so rack-timeout runs before other middleware.
Rack
::
Timeout
.
timeout
=
20
...
...
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