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
357 B
11 lines
357 B
json.(item, :name, :item_type, :difficulty, :public, :quotes)
|
|
json.analysis item.analysis
|
|
json.choices item.item_choices do |choice|
|
|
json.choice_text choice.choice_text
|
|
json.is_answer choice.is_answer
|
|
end
|
|
if item.item_type == "PROGRAM"
|
|
json.program_attr do
|
|
json.(item.container, :description, :language, :difficult, :status, :identifier)
|
|
end
|
|
end |