-
Notifications
You must be signed in to change notification settings - Fork 311
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
undefined method for Mash in 2.1 #153
Comments
Can you please write a spec within the existing Hashie specs to describe what you want it to do? I'll help with the implementation. |
You mean the test suite? Maybe it would help if I first knew if this was change was intentional. Been through the changelogs. |
No code from those issues has been merged, #60 is still open following a discussion in #17. So if change there was, it wasn't intentional and is a regression. There was a regression that introduced where |
@dblock That is the issue and https://github.com/intridea/hashie/pull/147/files#diff-a351d9f0497eba6d279202565db07edfR333 has a spec to cover it. Sorry for not trying against HEAD before opening another issue. |
Glad that worked! |
We are loading up a YAML file and running
Hashie::Mash.new(attrib)
on it.In 2.0.5 a predicate that isn't specified in our YAML/hash is falsey.
In 2.1.0+ we get a
undefined method awesome?
in this case (unless we specifically putawesome: false
).Can we configure Hashie to provide the old behaviour?
related to #17 & #60.
The text was updated successfully, but these errors were encountered: