intridea/grape — pull request #427 by timhabermaas (2013-06-12 22:46:20+00:00)
Title: declared(params) breaks when params contains array

When given

params do
group :nested do
requires :inner
end
end

and request parameters

params = {nested: [ {inner: 1}, {inner: 3} ]}

trying to call `declared(params)` leads to an

undefined method `key?' for [#, #]:Array

exception.

Since arrays generally work fine when using the `params` block, they should probably work with `declared` as well.

I believe I've already fixed this issue, I'll add a pull request shortly.