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