Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in Section.find_by_id #107

Open
JeffreyTerry opened this issue Jul 12, 2021 · 0 comments
Open

Typo in Section.find_by_id #107

JeffreyTerry opened this issue Jul 12, 2021 · 0 comments

Comments

@JeffreyTerry
Copy link

JeffreyTerry commented Jul 12, 2021

There's currently a typo in the Asana::Resources::Section.find_by_id method. In the method declaration, the section id is declared as id, but the method body tries to refer to it as the gid.

The resulting error message is NameError: undefined local variable or method 'gid' for Asana::Resources::Section:Class.

Here's a link to the line of code in question

The code is currently:

def find_by_id(client, id, options: {})
  self.new(parse(client.get("/sections/#{gid}", options: options)).first, client: client)
end

But it should be:

def find_by_id(client, id, options: {})
  self.new(parse(client.get("/sections/#{id}", options: options)).first, client: client)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant