Skip to content

Commit

Permalink
get rid of xmlns field
Browse files Browse the repository at this point in the history
  • Loading branch information
idris committed Sep 13, 2010
1 parent df70d4d commit f957714
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/constant_contact/formats/atom_format.rb
Expand Up @@ -27,10 +27,12 @@ def decode(xml)

def from_atom_data(xml)
if is_collection?(xml)
return content_from_collection(xml)
result = content_from_collection(xml)
else
return content_from_single_record(xml)
result = content_from_single_record(xml)
end
result.delete('xmlns')
return result
end

def no_content?(xml)
Expand Down

0 comments on commit f957714

Please sign in to comment.