Sha256: 346d49c7d7c07e77e23190f43923964db349c8327970acb53d91a10d5fdf7bbd

Contents?: true

Size: 261 Bytes

Versions: 4

Compression:

Stored size: 261 Bytes

Contents

# encoding: UTF-8
module MongoMapper
  module Extensions
    module NilClass
      def to_mongo(value)
        value
      end

      def from_mongo(value)
        value
      end
    end
  end
end

class NilClass
  extend MongoMapper::Extensions::NilClass
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongo_mapper-0.16.0 lib/mongo_mapper/extensions/nil_class.rb
mongo_mapper-0.15.6 lib/mongo_mapper/extensions/nil_class.rb
mongo_mapper-0.15.5 lib/mongo_mapper/extensions/nil_class.rb
mongo_mapper-0.15.4 lib/mongo_mapper/extensions/nil_class.rb