Skip to content

Commit 196595b

Browse files
authored
Merge pull request #764 from appwrite/fix-ruby-again
Fix Ruby accessor
2 parents 23fae03 + 30e5d4a commit 196595b

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)