Bipolar
class Asset
include MongoMapper::Document
plugin Bipolar
:images
end
class Image
include MongoMapper::Document
end
Image.create!
Image.create!
Asset.create :images => Image.all
The last line will embed the images inside the asset. The images will remain as first-class documents, and will be untouched.
License
bipolar is released under the MIT license.
Support
Just email me at [email protected] with questions, bugs, or patches.