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

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
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rmosolgo

This comment has been minimized.

Copy link
Owner

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
Projects
None yet
2 participants
You can’t perform that action at this time.