Skip to content

Commit 5c520f7

Browse files
committed
Make transform_attributes work with nested hashes
1 parent 3e145e0 commit 5c520f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/meilisearch/utils.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def parse(body)
8787
.transform_keys do |key|
8888
key.include?('_') ? key.downcase.gsub(SNAKE_CASE, &:upcase).gsub('_', '') : key
8989
end
90+
.transform_values { |val| transform_attributes(val) }
9091
end
9192

9293
def message_builder(current_message, method_name)

0 commit comments

Comments
 (0)