lib/generators/documentation/scaffold/templates/resource.md.tt in documentation-zero-0.0.8 vs lib/generators/documentation/scaffold/templates/resource.md.tt in documentation-zero-0.0.9

- old
+ new

@@ -75,12 +75,16 @@ { <% attributes.each do |attribute| -%> <% if attribute.password_digest? -%> "password_digest": "string", <% elsif attribute.token? -%> - "<%= attribute.name %>": "string", + "<%= attribute.column_name %>": "string", +<% elsif attribute.reference? -%> + "<%= attribute.column_name %>": "integer", <% elsif !attribute.virtual? -%> - "<%= attribute.name %>": "<%= attribute.type %>", + "<%= attribute.column_name %>": "<%= attribute.type %>", <% end -%> <% end -%> + "created_at": "datetime", + "updated_at": "datetime" } ```