File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
templates/ruby/lib/container Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,11 @@ module {{ spec.title | caseUcfirst }}
161
161
raise Appwrite::Exception.new(response.body, response.code, response)
162
162
end
163
163
164
- return response.body if response.body_permitted?
164
+ if response.respond_to?("body_permitted?")
165
+ return response.body if response.body_permitted?
166
+ end
167
+
168
+ return response
165
169
end
166
170
167
171
def encode_form_data(value, key=nil)
Original file line number Diff line number Diff line change 3
3
module {{spec .title | caseUcfirst }}
4
4
class {{ service .name | caseUcfirst }} < Service
5
5
6
- include Models
7
6
{% for method in service .methods %}
8
7
{{ method .description | rubyComment }}
9
8
#
@@ -47,7 +46,7 @@ module {{spec.title | caseUcfirst}}
47
46
params: params,
48
47
headers: headers,
49
48
{% if method .responseModel and method .responseModel != ' any' %}
50
- response_type: {{method .responseModel | caseUcfirst }}
49
+ response_type: Models:: {{method .responseModel | caseUcfirst }}
51
50
{% endif %}
52
51
)
53
52
end
You can’t perform that action at this time.
0 commit comments