method
date_or_time_range?
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting
date_or_time_range?(range)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 243
def date_or_time_range?(range)
[range.begin.class, range.end.class].intersect?([Date, DateTime, Time])
end