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.
|
|
|
json.items @items.each do |item|
|
|
|
|
json.(item, :id, :name, :item_type, :difficulty, :public, :quotes)
|
|
|
|
json.analysis item.analysis
|
|
|
|
json.update_time item.updated_at&.strftime("%Y-%m-%d %H:%M")
|
|
|
|
json.author do
|
|
|
|
json.login item.user&.login
|
|
|
|
json.name item.user&.full_name
|
|
|
|
end
|
|
|
|
json.choices item.item_choices do |choice|
|
|
|
|
json.choice_text choice.choice_text
|
|
|
|
json.is_answer choice.is_answer
|
|
|
|
end
|
|
|
|
end
|
|
|
|
json.items_count @items_count
|