Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1232

includes for mongoid put native Set class out of scope

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.2.1
    • Affects Version/s: None
    • Component/s: None

      this code fails

      class Foo
        include Mongoid::Document
        
        def self.crashes?
          Set.new
        end
      end
      

      I expect to be creating a native Set but instead I'm actually creating a Mongoid::Persistence::Atomic::Set

      I have to refactor Set.new to be ::Set.new

      Seems unexpected. Perhaps should refactor exactly what the module Mongoid::Document provides?

            Assignee:
            Unassigned Unassigned
            Reporter:
            michaelglass michaelglass
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: