Skip to content

Commit 00f8271

Browse files
author
Vincent (Wen Yu) Ge
authored
Update model.rb.twig
1 parent f875c96 commit 00f8271

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/ruby/lib/container/models/model.rb.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ module {{ spec.title | caseUcfirst }}
77
{% for property in definition.properties %}
88
attr_reader :{{ property.name | caseSnake | escapeKeyword }}
99
{% endfor %}
10+
{% if definition.additionalProperties %}
11+
attr_reader :data
12+
{% endif %}
1013

1114
def initialize(
1215
{% for property in definition.properties %}
@@ -68,4 +71,4 @@ module {{ spec.title | caseUcfirst }}
6871
{% endfor %}
6972
end
7073
end
71-
end
74+
end

0 commit comments

Comments
 (0)