module
ActiveSupport::RangeWithFormat
v5.2.3 -
Show latest stable
frozen_string_literal: true
Constants
RANGE_FORMATS = {\ndb: -> (start, stop) do\ncase start\nwhen String then "BETWEEN '#{start}' AND '#{stop}'"\nelse\n"BETWEEN '#{start.to_s(:db)}' AND '#{stop.to_s(:db)}'"\nend\nend\n}
Files
- activesupport/lib/active_support/core_ext/range/conversions.rb