Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Found that atom:content element was optional when testing Netflix's O…
Browse files Browse the repository at this point in the history
  • Loading branch information
visoft committed Jun 11, 2010
1 parent 9847111 commit d2a90a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/odata_ruby/service.rb
Expand Up @@ -152,7 +152,7 @@ def entry_to_class(entry)
klass_name = entry.xpath("./atom:category/@term", "atom" => "http://www.w3.org/2005/Atom").to_s.split('.')[-1]
return nil if klass_name.empty?

properties = entry.xpath("./atom:content//m:properties/*", { "m" => "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata", "atom" => "http://www.w3.org/2005/Atom" })
properties = entry.xpath(".//m:properties/*", { "m" => "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata", "atom" => "http://www.w3.org/2005/Atom" })

klass = @classes[klass_name].new

Expand Down

0 comments on commit d2a90a7

Please sign in to comment.