You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
344 B
11 lines
344 B
5 years ago
|
json.exams @exams.each do |exam|
|
||
|
json.(exam, :id, :name, :difficulty, :quotes)
|
||
|
json.question_count exam.question_count
|
||
|
json.total_score exam.total_score
|
||
|
json.update_time exam.updated_at&.strftime("%Y-%m-%d %H:%M")
|
||
|
json.author do
|
||
|
json.login exam.user&.login
|
||
|
json.name exam.user&.full_name
|
||
|
end
|
||
|
end
|
||
|
json.exam_count @exams_count
|