Sha256: 636a44f91ad40bbfc0cf86ce1569e2e7ac73e034613acc75061ef442bfed01dc

Contents?: true

Size: 171 Bytes

Versions: 2

Compression:

Stored size: 171 Bytes

Contents

# invoke Monkey patch for mongoid 4+ - to handle BSON-JSON ObjectId issues

module ::BSON
  class ObjectId
      alias :to_json :to_s
      alias :as_json :to_s
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taxonomite-0.2.3 spec/dummy/config/initializers/mongoid.rb
taxonomite-0.1.0 spec/dummy/config/initializers/mongoid.rb