thinkwell/mongoid_nested_set — pull request #8 by asavartsov (2012-05-27 13:54:50+00:00)
Title: remove_order_by method was broken for newest mongoid

Mongoid::Criterion::Optional module (which was included in Mongoid::Criteria class) was dropped in mongoid 3, so remove_order_by method stopped working. As far as there is no relevant module in Criterion to attach to, I renamed Optional to Ordering (to correspond current naming scheme (mongoid has Inspection and Scoping as for now)) and included it explicitly in Criteria.