lib/amee/profile_item.rb in Floppy-amee-2.0.8 vs lib/amee/profile_item.rb in Floppy-amee-2.0.9

- old
+ new

@@ -292,11 +292,11 @@ post_data = ({:profileItems => items}).to_json else post_data = ({:ProfileItems => items}).to_xml(:root => "ProfileCategory", :skip_types => true, :skip_nil => true) end # Post to category - response = connection.raw_post(category_path, post_data) + response = connection.raw_post(category_path, post_data).body # Send back a category object containing all the created items AMEE::Profile::Category.parse(connection, response) end def self.update(connection, path, options = {}) @@ -329,10 +329,10 @@ put_data = ({:profileItems => items}).to_json else put_data = ({:ProfileItems => items}).to_xml(:root => "ProfileCategory", :skip_types => true, :skip_nil => true) end # Post to category - response = connection.raw_put(category_path, put_data) + response = connection.raw_put(category_path, put_data).body # Send back a category object containing all the created items AMEE::Profile::Category.parse(connection, response) end def self.delete(connection, path)