class Mongoid::Contextual::None

def distinct(_field)

Returns:
  • (Array) - An empty Array.

Parameters:
  • _field (String | Symbol) -- The name of the field.

Other tags:
    Example: Get the distinct values in null context. -
def distinct(_field)
  []
end