lib/machinist/mongo_mapper.rb in machinist_mongo-1.1.0 vs lib/machinist/mongo_mapper.rb in machinist_mongo-1.1.1
- old
+ new
@@ -77,7 +77,8 @@
end
end
MongoMapper::Document.append_extensions(Machinist::Blueprints::ClassMethods)
MongoMapper::Document.append_extensions(Machinist::MongoMapperExtensions::Document)
-MongoMapper::EmbeddedDocument::ClassMethods.send(:include, Machinist::Blueprints::ClassMethods)
-MongoMapper::EmbeddedDocument::ClassMethods.send(:include, Machinist::MongoMapperExtensions::EmbeddedDocument)
+
+MongoMapper::EmbeddedDocument.append_extensions(Machinist::Blueprints::ClassMethods)
+MongoMapper::EmbeddedDocument.append_extensions(Machinist::MongoMapperExtensions::EmbeddedDocument)