mongoid/mongoid — pull request #1978 by i0rek (2012-05-04 13:44:00+00:00)
Title: Document.last considers default scope.

Fixes #1974.

The implementation can become quite slow, because it requests all documents to choose the last one. Perhaps moped can support query.last?

/cc @bernerdschaefer