without puts
This commit is contained in:
parent
cc0b5f04db
commit
a1495d6e14
@ -44,7 +44,6 @@ module Connectors
|
|||||||
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}"
|
|
||||||
collection.find(options).sort(sort).to_a.map {|bson| model_from_bson(bson)}
|
collection.find(options).sort(sort).to_a.map {|bson| model_from_bson(bson)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user