Sha256: b726106527882fcf31ecf468bc07d58ad777480fedfac43e59a8822a2b1714c4
Contents?: true
Size: 759 Bytes
Versions: 8
Compression:
Stored size: 759 Bytes
Contents
module Foobara module TypeDeclarations module Handlers class ExtendDetachedEntityTypeDeclaration < ExtendModelTypeDeclaration class ToTypeTransformer < ExtendModelTypeDeclaration::ToTypeTransformer def non_processor_keys [:primary_key, *super] end def process_value(strict_declaration_type) super.tap do |outcome| if outcome.success? type = outcome.result entity_class = type.target_class unless entity_class.primary_key_attribute entity_class.primary_key(strict_declaration_type[:primary_key]) end end end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems