Commit f3f4904f authored by lauraMon's avatar lauraMon

Updates template to include connnection fields

* Generates docs with connection fields
parent 40348efe
This diff is collapsed.
...@@ -30,11 +30,12 @@ ...@@ -30,11 +30,12 @@
\ \
- objects.each do |type| - objects.each do |type|
- unless type[:fields].empty? - all_fields = type[:fields] + type[:connections]
- unless all_fields.empty?
= render_name_and_description(type) = render_name_and_description(type)
~ "| Field | Type | Description |" ~ "| Field | Type | Description |"
~ "| ----- | ---- | ----------- |" ~ "| ----- | ---- | ----------- |"
- sorted_by_name(type[:fields]).each do |field| - sorted_by_name(all_fields).each do |field|
= render_field(field) = render_field(field)
\ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment