Skip to content

Commit

Permalink
minor: BSON should not have code that depends on Mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Jan 17, 2013
1 parent e496b27 commit 0e78d61
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/bson.rb
Expand Up @@ -15,11 +15,7 @@
# ++

module BSON
if defined? Mongo::DEFAULT_MAX_BSON_SIZE
DEFAULT_MAX_BSON_SIZE = Mongo::DEFAULT_MAX_BSON_SIZE
else
DEFAULT_MAX_BSON_SIZE = 4 * 1024 * 1024
end
DEFAULT_MAX_BSON_SIZE = 4 * 1024 * 1024

def self.serialize(obj, check_keys=false, move_id=false)
BSON_CODER.serialize(obj, check_keys, move_id)
Expand Down

0 comments on commit 0e78d61

Please sign in to comment.