Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
4 changes: 2 additions & 2 deletions lib/odata/entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def set_property_lazy_load(name, xml_value )

def self.process_properties(entity, xml_doc)
entity.instance_eval do
xml_doc.xpath('./content/properties/*').each do |property_xml|
xml_doc.xpath('./content/properties/*', './content/properties/*').each do |property_xml|
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol oops. That was supposed to be ./properties

property_name = property_xml.name
if property_xml.attributes['null'] &&
property_xml.attributes['null'].value == 'true'
Expand Down Expand Up @@ -234,4 +234,4 @@ def self.process_links(entity, xml_doc)
end
end
end
end
end