lib/cfoundry/v2/model.rb in cfoundry-0.3.46 vs lib/cfoundry/v2/model.rb in cfoundry-0.3.47

- old
+ new

@@ -143,22 +143,22 @@ define_method(:"add_#{singular}") { |x| # TODO: reflect this change in the app manifest? Model.validate_type(x, CFoundry::V2.const_get(kls)) @client.base.request_path( - :put, + Net::HTTP::Put, ["v2", "#{object_name}s", @guid, plural, x.guid], - nil => :json) + :accept => :json) } define_method(:"remove_#{singular}") { |x| # TODO: reflect this change in the app manifest? Model.validate_type(x, CFoundry::V2.const_get(kls)) @client.base.request_path( - :delete, + Net::HTTP::Delete, ["v2", "#{object_name}s", @guid, plural, x.guid], - nil => :json) + :accept => :json) } define_method(:"#{plural}=") { |xs| Model.validate_type(xs, [CFoundry::V2.const_get(kls)])