Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 378 Bytes
require 'rubygems'
require 'mongo'
def require_document(lib)
require File.dirname(__FILE__) + "/document/" + lib
end
require_document 'serialization'
require_document 'persistence'
module LightMongo
module Document
def self.included(document_class)
document_class.class_eval %{
include Serialization
include Persistence
}
end
end
end