intridea/grape — pull request #434 by camertron (2013-07-01 23:44:15+00:00)
Title: Preserve `doc_attrs` so that parameter descriptions are available at runtime

The `doc_attrs` variable, which contains the `:desc` attribute (as well as any other custom attributes), is not passed to the validator and therefore not available at runtime. This PR passes `doc_attrs` as another argument to the validator's constructor, thereby preserving them for later access.