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 212 def literal_other_append(sql, v) 213 case v 214 when ActiveSupport::Duration 215 literal_append(sql, IntervalDatabaseMethods.literal_duration(v)) 216 sql << '::interval' 217 else 218 super 219 end 220 end