Fixed the "case/when" conditionals.
Fixed the "case/when" conditionals.

macdiesel/mongoid-tree,gurix/mongoid-tree,zenjoy/mongoid-tree,epogue/mongoid-tree,radin-reth/mongoid-tree,travis-repos/mongoid-tree,devilcoders/mongoid-tree,benedikt/mongoid-tree