Allow param type definition in route_param#1255
Conversation
|
Very nice thanks. |
…te_param Allow param type definition in route_param
|
Great feature, unfortunately this breaks with In a very simplified version, my migration looks like: params do
requires :id, type: Integer
end
get '/:id' do
params.to_json
endroute_param :id, type: Integer do
get do
params.to_json
end
end |
|
@rngtng Could you provide a minimal failing project with Gemfile.lock? |
|
@namusyaka thx for you quick response. while creating an example project i figured it actually hasn't anything todo with the refactoring to |
ref #1009
I'd like to use type definition in
route_param, so I implemented it by usingrequiresDSL.