Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5622daac5e
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (18 sloc) 0.468 kb
module Searchgasm
module Condition
class LessThanOrEqualTo < Base
class << self
def name_for_column(column)
return unless comparable_column?(column)
super
end
def aliases_for_column(column)
["#{column.name}_lte", "#{column.name}_at_most"]
end
end
def to_conditions(value)
["#{quoted_table_name}.#{quoted_column_name} <= ?", value]
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.