|
|
@ -1,7 +1,8 @@
|
|
|
|
json.extract! @module, :id, :name, :position, :url
|
|
|
|
json.extract! @module, :id, :name, :position, :url
|
|
|
|
|
|
|
|
|
|
|
|
mds = @module.competition_module_md_contents
|
|
|
|
md = @module.competition_module_md_content
|
|
|
|
json.md_contents mds.each do |md|
|
|
|
|
if md.present?
|
|
|
|
|
|
|
|
json.md_id md.id
|
|
|
|
json.md_name md.name
|
|
|
|
json.md_name md.name
|
|
|
|
json.md_content md.content
|
|
|
|
json.md_content md.content
|
|
|
|
json.competition_stage_id md.competition_stage_id
|
|
|
|
json.competition_stage_id md.competition_stage_id
|
|
|
|