I am working on a simple application using Roda Ruby gem and Sequel. I want Sequel to return a single result as a array rather than a Model object type. When there are more than one items, it returns them as a array but when there's only one, it returns as a Model item. eg,
get 'pizza' do
@pizza = Pizza.first #=> returns object type Pizza, i want this to be a array as well
get 'pizzas' do
@pizzas = Pizza.first(10) #=> returns an array of the first 20 results.
first with an argument to trigger the hash syntax. This works even when the argument is just