includes for mongoid put native Set class out of scope

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 2.2.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              michaelglass
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: