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
fixed issue in translating nested hash with multiple string keys #518
base: master
Are you sure you want to change the base?
Conversation
* [#518](https://github.com/hashie/hashie/pull/518): fixed issue in translating nested hash with multiple string keys - [@jitendra1998](https://github.com/jitendra1998). Generated by 🚫 Danger |
Awesome.
|
sure will create a new pr for fixing failed integration spec |
Thanks for #520. Rebase? |
@@ -28,7 +28,7 @@ scheme are considered to be bugs. | |||
|
|||
### Fixed | |||
|
|||
* Your contribution here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this back ;)
@@ -28,7 +28,7 @@ scheme are considered to be bugs. | |||
|
|||
### Fixed | |||
|
|||
* Your contribution here. | |||
* [#518](https://github.com/hashie/hashie/pull/518): fixed issue in translating nested hash with multiple string keys - [@jitendra1998](https://github.com/jitendra1998). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to start with a capital Fixed
.
name = name.to_s | ||
!!properties.find { |property| property.to_s == name } | ||
if name.is_a? ::Array | ||
name.all? { |att| !!properties.find { |property| property.to_s == att.to_s } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does name require a translation again in the Array
case? Should come up with a nested test case with translations at all levels.
If so, then name.all? { |att | property?(att) }
?
Want to try and finish this @jitendra1998 ? |
Fixed issue #514 in this pr