module Arelable
Constants
- VERSION
Public Instance Methods
bw(column, value = [])
click to toggle source
# File lib/arelable.rb, line 24 def bw(column, value = []) where("#{column} BETWEEN ? AND ?", value.min, value.max) end
gt(column, value)
click to toggle source
# File lib/arelable.rb, line 8 def gt(column, value) where("#{column} > ?", value) end
gteq(column, value)
click to toggle source
# File lib/arelable.rb, line 12 def gteq(column, value) where("#{column} >= ?", value) end
lt(column, value)
click to toggle source
# File lib/arelable.rb, line 16 def lt(column, value) where("#{column} < ?", value) end
lteq(column, value)
click to toggle source
# File lib/arelable.rb, line 20 def lteq(column, value) where("#{column} <= ?", value) end
matches(column, value)
click to toggle source
# File lib/arelable.rb, line 28 def matches(column, value) where("#{column} LIKE ?", "%#{value}%") end