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

Don't use popular name to prevent field overwrite when enable_ruby is true #687

Merged
merged 1 commit into from
Oct 26, 2015

Conversation

repeatedly
Copy link
Member

@sonots please check this patch.

@sonots
Copy link
Member

sonots commented Oct 26, 2015

Ah, so local variables are still available even we do instance_eval { binding }.
Is there no way to off local variable scope?

@sonots
Copy link
Member

sonots commented Oct 26, 2015

It looks better to add some random hex like 6c8047b87c44f301eeae6e522a42d059 than adding _.

@repeatedly
Copy link
Member Author

I asked @nurse and he said there is no good way for now.
We will consider to add pre-eval based formatter so this patch is enough for temporary solution.

@repeatedly
Copy link
Member Author

@sonots if you okay, please merge this.

@sonots
Copy link
Member

sonots commented Oct 26, 2015

Hmm, no good, but okay to merge...

sonots added a commit that referenced this pull request Oct 26, 2015
…ormer

Don't use popular name to prevent field overwrite when enable_ruby is true
@sonots sonots merged commit d44aa4b into master Oct 26, 2015
@sonots sonots deleted the fix-overwrite-field-record-transformer branch October 26, 2015 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants