The default guard that gets put around a View in an ExtendedDocument checks that the value of doc[attribute] is true. However, JavaScript does not operate like Ruby. For instance, 0 is a false value.
Instead, they should check that "doc[attribute] != null".
Issue from: http://github.com/couchrest/couchrest/issues#issue/21
The default guard that gets put around a View in an ExtendedDocument checks that the value of doc[attribute] is true. However, JavaScript does not operate like Ruby. For instance, 0 is a false value.
Instead, they should check that "doc[attribute] != null".