Method: Graphiti::Adapters::ActiveRecord#minimum

Defined in:
lib/graphiti/adapters/active_record.rb

#minimum(scope, attr) ⇒ Numeric

Returns the maximum value of the scope.

Examples:

ActiveRecord default

def maximum(scope, attr)
  scope.maximum(attr)
end

Parameters:

  • scope

    the scope object we are chaining

  • attr (Symbol)

    corresponding stat attribute name

Returns:

  • (Numeric)

    the maximum value of the scope



221
222
223
# File 'lib/graphiti/adapters/active_record.rb', line 221

def minimum(scope, attr)
  scope.minimum(attr)
end