Closed michalkrause closed 13 years ago
Good idea!
However, I will commit a different change that:
1) Included on the same "when" than the regular expresion that evaluates strings with "f" to false
2) Using a comparison with either the literal "0" or a more generic regexp like /^\s*0/, because /^0$/ would only match when the value is exactly "0".
Thanks a lot!
Sorry, the github editor interprets the "initial of string" character of the regular expression as the beginning of an upper text :)
Thanks :) BTW, Mongo_ODM is great - it is exactly what I was looking for :)
Thanks to you!
I have big plans for MongoODM. Stay tuned! :)
Hello, I have made small change which enables conversion of "0" (string containing one ASCII zero) to false value for Boolean fields. This makes integration with HTML forms and/or HTTP request params much easier.