lib/intercom/api_operations/save.rb in intercom-3.0.4 vs lib/intercom/api_operations/save.rb in intercom-3.0.5

- old
+ new

@@ -19,10 +19,10 @@ end def save(object) collection_name = Utils.resource_class_to_collection_name(collection_class) if id_present?(object) && !posted_updates?(object) - response = @client.put("/#{collection_name}/#{id}", object.to_submittable_hash) + response = @client.put("/#{collection_name}/#{object.id}", object.to_submittable_hash) else response = @client.post("/#{collection_name}", object.to_submittable_hash.merge(identity_hash(object))) end object.from_response(response) if response # may be nil we received back a 202 end