aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/engines/sql/extensions/range.rb
blob: 25bf1d01daaf0ec31c7022b6536ae962990380fa (plain) (tree)
1
2
3
4
5
6
7





                                            
 





                                 
     
   
module Arel
  module Sql
    module RangeExtensions
      def to_sql(formatter = nil)
        formatter.range self.begin, self.end
      end

      def inclusion_predicate_sql
        "BETWEEN"
      end
      
      Range.send(:include, self)
    end
  end
end