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
1d2eba6a
Commit
1d2eba6a
authored
Aug 09, 2016
by
Robert Raposa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix new relic traces.
parent
3b9d1673
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app.rb
+4
-4
No files found.
app.rb
View file @
1d2eba6a
...
@@ -88,8 +88,8 @@ require 'yajl/json_gem'
...
@@ -88,8 +88,8 @@ require 'yajl/json_gem'
# Note that BSON was moved from Moped::BSON::ObjectId to BSON::ObjectId
# Note that BSON was moved from Moped::BSON::ObjectId to BSON::ObjectId
module
BSON
module
BSON
class
ObjectId
class
ObjectId
def
to_json
def
as_json
(
options
=
{})
self
.
to_s
.
to_json
self
.
to_s
end
end
end
end
end
end
...
@@ -100,8 +100,8 @@ class Time
...
@@ -100,8 +100,8 @@ class Time
# object.
# object.
# Note that this was done to prevent milliseconds from showing up in the JSON response thus breaking
# Note that this was done to prevent milliseconds from showing up in the JSON response thus breaking
# API compatibility for downstream clients.
# API compatibility for downstream clients.
def
to_json
(
*
)
def
as_json
(
options
=
{}
)
'"'
+
utc
().
strftime
(
"%Y-%m-%dT%H:%M:%SZ"
)
+
'"'
utc
().
strftime
(
"%Y-%m-%dT%H:%M:%SZ"
)
end
end
end
end
...
...
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