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 185 def literal_other_append(sql, v) 186 case v 187 when ActiveSupport::Duration 188 literal_append(sql, IntervalDatabaseMethods.literal_duration(v)) 189 sql << '::interval' 190 else 191 super 192 end 193 end