intridea/grape — pull request #509 by dm1try (2013-11-13 17:15:18+00:00)
Title: Added possibility to define reusable params

It is so-called params concern, usage:

param_concern :pageable do
optional :page, type: Integer
optional :per_page, type: Integer
end

desc "Get some collection"
params concerns: :pageble

desc "Get some collection from date"
params concerns: :pageable do
optional :from_date
end