-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
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
- 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!?
- 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?