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

Correct the example for using 'a class method to generate fields' #2435

Merged
merged 1 commit into from Aug 21, 2019

Conversation

@recurser
Copy link
Contributor

@recurser recurser commented Aug 21, 2019

I have tried using the example included, and get the error undefined method 'argument' for Types::QueryType:Class. After some investigation, the correct way seems to be to pass self to the block as a parameter.

I have tried using the example included, and get the error "undefined method 'argument' for Types::QueryType:Class". After some investigation, the correct way seems to be to pass 'self' to the block as a parameter.
@rmosolgo rmosolgo merged commit 60aea23 into rmosolgo:master Aug 21, 2019
1 check passed
@rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Aug 21, 2019

Oops, thanks for the fix! I guess, as written, it should have been instance_eval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants