class PG::TextEncoder::Date
Public Instance Methods
Source
# File lib/pg/text_encoder.rb, line 9 def encode(value) value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d") : value end
# File lib/pg/text_encoder.rb, line 9 def encode(value) value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d") : value end