Sha256: 51e7dc3831a0f31f509f262a8a0d15903e9db49e9c40015d58914d8e46816791

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

# see https://groups.google.com/forum/#!msg/mongoid/MaXFVw7D_4s/T3sl6Flg428J
if defined?(:BSON)
  module BSON
    class ObjectId
      def as_json(_options = {})
        to_s
      end

      def to_bson_key(encoded = ''.force_encoding(BINARY))
        to_s.to_bson_key(encoded)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-bot-server-2.1.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-2.1.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-2.0.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb