module Sequel::Postgres::IntervalDatasetMethods
Private Instance Methods
literal_other_append(sql, v)
click to toggle source
Handle literalization of ActiveSupport::Duration objects, treating them as PostgreSQL intervals.
Calls superclass method
# File lib/sequel/extensions/pg_interval.rb 201 def literal_other_append(sql, v) 202 case v 203 when ActiveSupport::Duration 204 literal_append(sql, IntervalDatabaseMethods.literal_duration(v)) 205 sql << '::interval' 206 else 207 super 208 end 209 end