mlainez/leankitkanban — pull request #1 by darrencauthon (2012-04-22 20:11:00+00:00)
Title: Single item results

I was putting together a quick Sinatra application for a presentation I was going to do, and I noticed that when using this api I often had to do things like this:

https://github.com/darrencauthon/leankitkanban_mobile/blob/master/app.rb#L42

I run a "find" call with an id, but I always get an array back with one item. In these cases, would it be worth the time to return just the single card?

It works the same for calls like Board.all (though I did not fix this one). This returns a single-item array where that single-item is the array of boards. Shouldn't it return just a single array of boards?