module Sequel::Postgres::IntervalDatasetMethods

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