class Mongoid::Contextual::None

def initialize(criteria)

Parameters:
  • criteria (Criteria) -- The criteria.

Other tags:
    Example: Create the new context. -
def initialize(criteria)
  @criteria, @klass = criteria, criteria.klass
end