Constants
CAST_INTERVAL | = | '::interval'.freeze |
Public Instance methods
literal_other_append
(sql, v)
Handle literalization of ActiveSupport::Duration objects, treating them as PostgreSQL intervals.
[show source]
# File lib/sequel/extensions/pg_interval.rb, line 177 def literal_other_append(sql, v) case v when ActiveSupport::Duration literal_append(sql, IntervalDatabaseMethods.literal_duration(v)) sql << CAST_INTERVAL else super end end