class Mongoid::Errors::InvalidScope

This error is raised when defining a scope of an invalid type.