Skip to content

Commit

Permalink
Use patch request to update records
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrytrager committed Jul 7, 2021
1 parent 041a8ba commit fb4f4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/airtable/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create(record)

# Replaces record in airtable based on id
def update(record)
result = self.class.put(worksheet_url + "/" + record.id,
result = self.class.patch(worksheet_url + "/" + record.id,
:body => { "fields" => record.fields_for_update }.to_json,
:headers => { "Content-type" => "application/json" }).parsed_response

Expand Down

0 comments on commit fb4f4cb

Please sign in to comment.