|
|
|
@ -21,5 +21,7 @@ json.question do
|
|
|
|
|
json.answer_percent question_vote_user.present? ? (answer_users_count.to_f / question_vote_user.to_f).round(3) : 0.0
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
json.vote_text question_votes.find_vote_text.present? ? question_votes.pluck(:vote_text).reject(&:blank?) : "--" #问题的回答是否有用户手动输入的内容
|
|
|
|
|
if question_votes.find_vote_text.present?
|
|
|
|
|
json.vote_text question_votes.pluck(:vote_text) #问题的回答是否有用户手动输入的内容
|
|
|
|
|
end
|
|
|
|
|
end
|