pyromaniac/mongoid_orderable — pull request #34 by joeyAghion (2014-10-03 18:22:28+00:00)
Title: Ensure that index matches scope [Fixes #33]

This prefixes the declared index with the scope (if defined), fixing #33.

Note that scopes defined as lambdas can't be easily indexed this way, so I chose to leave the default behavior (of indexing only `position`) in that case. In many cases, it may actually be preferable to disable the automatic index and declare another manually.