Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.378 kb
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
Jump to Line
Something went wrong with that request. Please try again.