mongoid/mongoid — pull request #3475 by elia (2013-12-28 12:26:39+00:00)
Title: Skip any module part that is blank

Getting a `NameError` with `wrong constant name` because it seems to pass to `ActiveSupport::Inflector.constantize` (4.1.beta1) a blank value

[here is some context (backtrace, models and offending call in a controller)](https://gist.github.com/elia/3400212c37a9f6fce2b0)