Sha256: e0158f173011eeb0610b3bef60e96165bfef5836386676b7c94b7dc1cb316b26

Contents?: true

Size: 129 Bytes

Versions: 51

Compression:

Stored size: 129 Bytes

Contents

class Hash
  def to_bson(*args)
    {}.tap do |hash|
      each {|key, value| hash[key.to_s] = value.to_bson}
    end
  end  
end

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
mongo_doc-0.6.13 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.12 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.11 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.10 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.9 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.8 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.7 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.6 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.5 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.4 lib/mongo_doc/ext/hash.rb
mongo_doc_rails2-0.6.2 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.3 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.2 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.1 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.0 lib/mongo_doc/ext/hash.rb
mongo_doc_rails2-0.6.1 lib/mongo_doc/ext/hash.rb
mongo_doc-0.5.5 lib/mongo_doc/ext/hash.rb
mongo_doc-0.4.2 lib/mongo_doc/ext/hash.rb
mongo_doc-0.4.1 lib/mongo_doc/ext/hash.rb
mongo_doc-0.4.0 lib/mongo_doc/ext/hash.rb