module Sequel::Postgres::PGRange::DatasetMethods

  1. lib/sequel/extensions/pg_range.rb
Parent: PGRange

Methods

Public Instance

  1. literal_other_append

Public Instance methods

literal_other_append (sql, v)

Handle literalization of ruby Range objects, treating them as PostgreSQL ranges.

[show source]
# File lib/sequel/extensions/pg_range.rb, line 293
def literal_other_append(sql, v)
  case v
  when Range
    super(sql, Sequel::Postgres::PGRange.from_range(v))
  else
    super
  end
end