giovannelli/sunspot_stats — pull request #2 by diazruy (2013-10-17 20:21:35+00:00)
Title: Bug fixes

When an error occurs in StatFacet, it would fail silently without printing to the console because the puts was after the return.

Also, if the search did not contain facets, the call to `value["facets"].collect` in StatSearch would fail (silently, because of the above bug), and just return an empty array.