instance method
encode_range
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
encode_range(range)
No documentation comment.
Parameters
-
rangereq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 140
def encode_range(range)
"[#{type_cast_range_value(range.first)},#{type_cast_range_value(range.last)}#{range.exclude_end? ? ')' : ']'}"
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb line 140
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting