lib/mongo_mapper/serialization.rb in mongo_mapper-unstable-2009.10.16 vs lib/mongo_mapper/serialization.rb in mongo_mapper-unstable-2009.10.31

- old
+ new

@@ -3,11 +3,11 @@ module MongoMapper #:nodoc: module Serialization class Serializer #:nodoc: attr_reader :options - def initialize(record, options = {}) + def initialize(record, options={}) @record, @options = record, options.dup end def serializable_key_names key_names = @record.attributes.keys @@ -49,7 +49,6 @@ end end end end -dir = Pathname(__FILE__).dirname.expand_path + 'serializers' -require dir + 'json_serializer' +require 'mongo_mapper/serializers/json_serializer' \ No newline at end of file