mattt/sinatra-param — pull request #6 by rlipman (2012-06-14 19:17:33+00:00)
Title: Skip some validations when param is nil

I was running into some cases where I'd have an optional parameter that also had a `:in` validation:

`param :foo, String, in: %w[a b c]`

If I left off the parameter (because it was optional), the validation would fail. I had changed it to this line to make it work:

`param :foo, String, in: %w[a, b, c] + [nil]`

But in the end I think it makes more sense for the validation to only run if the param is non-nil.