lassebunk/api_builder — pull request #1 by dbloete (2011-11-05 13:01:20+00:00)
Title: Using request.format instead of params[:format]

This works even in case the format is not explicitly specified (i.e. Backbone.js does not send a format parameter when fetching data)