Sha256: 827a43a914ec1fce4d783a15983a7effc8cc0411a20fcc386af6234a6d4e66b7

Contents?: true

Size: 264 Bytes

Versions: 26

Compression:

Stored size: 264 Bytes

Contents

# see https://groups.google.com/forum/#!msg/mongoid/MaXFVw7D_4s/T3sl6Flg428J
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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.4.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.3.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.3.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.2.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.1.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.1.0 config/initializers/bson/object_id.rb