for testing

This commit is contained in:
amartynov 2015-09-15 15:37:34 +03:00
parent d9745f0d4f
commit 3464d13ff1

View File

@ -42,7 +42,7 @@ module Connectors
sort = nil sort = nil
if options["sort"] if options["sort"]
val = options.delete("sort") val = options.delete("sort")
sort = {created_at: (val == "desc" ? -1 : 1)} sort = {created_at: (val == "desc" ? 1 : -1)}
end end
puts "Reports: #{options}" puts "Reports: #{options}"
cursor = collection.find(options) cursor = collection.find(options)