Permalink
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 463 Bytes
# encoding: UTF-8
module MongoMapper
module Extensions
module Object
extend ActiveSupport::Concern
module ClassMethods
def to_mongo(value)
value
end
def from_mongo(value)
value
end
end
def to_mongo
self.class.to_mongo(self)
end
def _mongo_mapper_deep_copy_
self
end
end
end
end
class Object
include MongoMapper::Extensions::Object
end