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-1.2.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-1.2.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-1.1.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-1.0.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.12.3 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.12.2 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.12.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.12.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.11.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.11.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.10.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.9.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.8.3 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.8.2 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.8.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.8.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.7.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.6.1 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.6.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb
slack-ruby-bot-server-0.5.0 lib/slack-ruby-bot-server/ext/bson/object_id.rb