module SexyScopes::Arel::Math

Public Instance Methods

*(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/math.rb, line 6
def *(other)
  SexyScopes.extend_expression(super)
end
+(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/math.rb, line 10
def +(other)
  SexyScopes.extend_expression(super)
end
-(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/math.rb, line 14
def -(other)
  SexyScopes.extend_expression(super)
end
/(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/math.rb, line 18
def /(other)
  SexyScopes.extend_expression(super)
end
coerce(other) click to toggle source
# File lib/sexy_scopes/arel/math.rb, line 22
def coerce(other)
  expression = ::Arel.sql(other.to_s)
  [SexyScopes.extend_expression(expression), self]
end