method
cast_value
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Uuid
cast_value(value)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb, line 28
def cast_value(value)
value = value.to_s
format_uuid(value) if value.match?(ACCEPTABLE_UUID)
end