Sha256: d30b8eba3c6b48719901958809502d80d37e0e37a2854d5b8f672487874eb4d2
Contents?: true
Size: 305 Bytes
Versions: 3
Compression:
Stored size: 305 Bytes
Contents
module Toy module Identity class NativeUUIDKeyFactory < AbstractKeyFactory def key_type SimpleUUID::UUID end def next_key(object) SimpleUUID::UUID.new end def to_key(object) [object.id.to_guid] if object.persisted? end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.13.2 | lib/toy/identity/native_uuid_key_factory.rb |
toystore-0.13.1 | lib/toy/identity/native_uuid_key_factory.rb |
toystore-0.13.0 | lib/toy/identity/native_uuid_key_factory.rb |