lib/zendesk_api/collection.rb in zendesk_api-1.1.0 vs lib/zendesk_api/collection.rb in zendesk_api-1.1.1

- old
+ new

@@ -383,10 +383,10 @@ set_page_and_count(body) set_includes(@resources, @includes, body) end # Simplified Associations#wrap_resource - def wrap_resource(res, with_association = @resource_class == Tag) + def wrap_resource(res, with_association = [Tag, Setting].include?(@resource_class)) case res when Array wrap_resource(Hash[*res]) when Hash res = res.merge(:association => @association) if with_association