tzar/mongoid — pull request #2 by riencroonenborghs (2014-08-28 21:42:16+00:00)
Title: Clone embedded relation attributes only when embedded relation exists.

When building up a hash of embedded relations attributes, don't map over the assumed embedded relation array; make sure it exists and is an array before taking further steps!