From 157d32eca50fc460076d6a9bfe30f342830ded13 Mon Sep 17 00:00:00 2001 From: Andy Kurnia Date: Mon, 12 Dec 2022 01:21:02 +0800 Subject: [PATCH] fix NameError in Section#find_by_id --- lib/asana/resources/section.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asana/resources/section.rb b/lib/asana/resources/section.rb index 24f40c6..bb7ae03 100644 --- a/lib/asana/resources/section.rb +++ b/lib/asana/resources/section.rb @@ -53,7 +53,7 @@ def find_by_project(client, project: required("project"), per_page: 20, options: # options - [Hash] the request I/O options. def find_by_id(client, id, options: {}) - self.new(parse(client.get("/sections/#{gid}", options: options)).first, client: client) + self.new(parse(client.get("/sections/#{id}", options: options)).first, client: client) end end