method

format_uuid

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Uuid

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

format_uuid(uuid)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb, line 33
            def format_uuid(uuid)
              if uuid.match?(CANONICAL_UUID)
                uuid
              else
                uuid = uuid.delete("{}-").downcase
                "#{uuid[..7]}-#{uuid[8..11]}-#{uuid[12..15]}-#{uuid[16..19]}-#{uuid[20..]}"
              end
            end