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
994a6328
Commit
994a6328
authored
Jul 17, 2015
by
Ben McMorran
Committed by
Saqib
Aug 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TNL-1943 Add context field to CommentThread
parent
509c96eb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
AUTHORS
+1
-0
lib/helpers.rb
+0
-0
models/comment.rb
+8
-1
No files found.
AUTHORS
View file @
994a6328
...
...
@@ -25,3 +25,4 @@ Bill DeRusha <bill@edx.org>
Brian Beggs <macdiesel@gmail.com>
Clinton Blackburn <cblackburn@edx.org>
Eugeny Kolpakov <eugeny.kolpakov@gmail.com>
Ben McMorran <ben.mcmorran@gmail.com>
lib/helpers.rb
View file @
994a6328
models/comment.rb
View file @
994a6328
...
...
@@ -141,7 +141,14 @@ class Comment < Content
end
def
context
self
.
comment_thread_id
?
self
.
comment_thread
.
context
:
nil
if
self
.
comment_thread_id
t
=
CommentThread
.
find
self
.
comment_thread_id
if
t
t
.
context
end
end
rescue
Mongoid
::
Errors
::
DocumentNotFound
nil
end
def
course_context?
...
...
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