Ruby Driver not accepting multi-line block syntax

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 12_01_17
    • Affects Version/s: 1.8.2
    • Component/s: None
    • None
    • Environment:
      Mac OSX Mountain Lion, Ruby 1.9.3p362, "mongo" gem 1.8.2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This part – works

      1. Doing a more complex query
        sortedScores.find(type: "homework").sort(student_id: :asc, score: :asc).each {|row| puts row.inspect}

      This part in particular – Somehow FAILS!?

      1. Doing a more complex query
        sortedScores.find(type: "homework").sort(student_id: :asc, score: :asc).to_a.each do |row|
        puts row.inspect
        end

      WHY IS THE RUBY DRIVER ONLY ACCEPTING ONE-LINE BLOCK SYNTAX AND NOT MULTI-LINE?

            Assignee:
            Brandon Black (Inactive)
            Reporter:
            Sambit Behera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: