app/helpers/review_mapping_helper.rb
#This function returns the concatenation of comments provided by the reviewer for one team.
This function returns the concatenation of comments provided by the reviewer for one team.
This function returns the concatenation of comments provided by the reviewer for one team .
def comments_in_current_response(response_id)
  answers = Answer.where(response_id: response_id)
	all_comments_per_review = []
	answers.each do |a|
      comment = a.comments
      comment.slice! "<p>"
      comment.slice! "</p>"
      all_comments_per_review.push(comment) unless comment.empty?
    end
	return all_comments_per_review
  end
def comments_in_current_response ( response_id ) answers = Answer . where ( response_id : response_id ) all_comments_per_review = [ ] answers . each do | a | comment = a . comments comment . slice! "<p>" comment . slice! "</p>" all_comments_per_review . push ( comment ) unless comment . empty? end return all_comments_per_review end
This function returns the concatenation of comments provided by the reviewer for one team.
This function returns the concatenation of comments provided by the reviewer for one team .
#Fetching all comments in an answer separated by the paragraph tag
response_id