-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fae64eb
commit 0c657ed
Showing
6 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
json.hasAnyComments comments.present? | ||
if comments.present? | ||
json.numberOfComments comments.size | ||
json.lastCommentDatetime comments.last.updated_at.to_datetime | ||
json.lastCommentDate l comments.last.updated_at, format: :date_and_time | ||
json.hasAnyComments report.comments.present? | ||
if report.comments.present? | ||
json.numberOfComments report.comments.size | ||
json.lastCommentDatetime report.comments.last.updated_at.to_datetime | ||
json.lastCommentDate l report.comments.last.updated_at, format: :date_and_time | ||
json.comments do | ||
json.array! comments.commented_users do |user| | ||
json.array! report.commented_users.uniq do |user| | ||
json.user_icon user.avatar_url | ||
json.user_id user.id | ||
json.primary_role user.primary_role | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters