mirego/bourgeois — pull request #9 by remiprev (2014-06-19 20:14:38+00:00)
Title: Handle a Struct-based objects

Since `Struct`-based objects respond to `to_a` (by) and we were using `respond_to?(:to_a)` to check if we’re dealing with an array of objects or a single objects, we have to specifically check for `Struct` inheritance.