Sha256: 0636b45709f907c4a8a64af41db6b9d8fa74332c18d4dbff9e0fdf4e52de5750

Contents?: true

Size: 256 Bytes

Versions: 8

Compression:

Stored size: 256 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arel-0.3.3 lib/arel/engines/sql/core_extensions/range.rb
arel-0.3.2 lib/arel/engines/sql/core_extensions/range.rb
arel-0.3.1 lib/arel/engines/sql/core_extensions/range.rb
arel-0.3.0 lib/arel/engines/sql/core_extensions/range.rb
arel-0.2.1 lib/arel/engines/sql/core_extensions/range.rb
arel-0.2.0 lib/arel/engines/sql/core_extensions/range.rb
arel-0.2.pre lib/arel/engines/sql/core_extensions/range.rb
arel-0.1.2 lib/arel/engines/sql/core_extensions/range.rb