lib/almodovar/resource_collection.rb in almodovar-0.9.2 vs lib/almodovar/resource_collection.rb in almodovar-0.9.3

- old
+ new

@@ -13,10 +13,10 @@ def create(attrs = {}) raise ArgumentError.new("You must specify one only root element which is the type of resource (e.g. `:project => { :name => 'Wadus' }` instead of just `:name => 'Wadus'`)") if attrs.size > 1 root, body = attrs.first response = http.post(url_with_params, body.to_xml(:root => root, :convert_links => true, :skip_links_one_level => true), "Content-Type" => "application/xml") - check_errors(response) + check_errors(response, url_with_params) Resource.new(nil, @auth, Nokogiri::XML.parse(response.body).root) end private \ No newline at end of file