1 2 3 4 5 6 7 8 9
class Range def to_sql(formatter = nil) formatter.range self.begin, self.end end def predicate_sql "BETWEEN" end end