Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Ruby 2.4 Fix #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akarnama
Copy link

When response_hash.data is nil , instance_variable_set will throw error 'can't modify frozen NilClass' for Ruby > 2.2 , using the initialize of ::Hashie::Mash which duplicates the hash and does the necessary work.

When response_hash.data is nil , instance_variable_set will throw error 'can't modify frozen NilClass' for Ruby > 2.2 , using the initialize of ::Hashie::Mash which duplicates the hash and does the necessary work.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link

@PriyankaHanumansetti PriyankaHanumansetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix won't work when the data is a list of objects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants