Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1051

Some commands fail if there exists a toplevel "Result" class

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 2.1.0
    • Component/s: Private API
    • None
    • Environment:
      OS X 10.10.3
      JRuby 9.0.1.0
      Rails 4.2.3

      In Mongo::Operation::Executable::execute, it uses defined?(self.class::Result) to see if there's a custom Result class for the command, but this could lead to problem if the command does not have a Result class and there exists a user defined Result class in the top namespace.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            crccw Ran Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: