module Torque::PostgreSQL::Adapter::OID::Range::Comparasion
Public Instance Methods
<=>(other)
click to toggle source
Calls superclass method
# File lib/torque/postgresql/adapter/oid/range.rb, line 11 def <=>(other) return super unless other.acts_like?(:date) || other.acts_like?(:time) other = other.to_time if other.acts_like?(:date) super other.to_i end