Sha256: 49a07988d5ca2d13f0bb69812c1ddbf6d18fa5b20b4243ab9714b33ca69621f4
Contents?: true
Size: 804 Bytes
Versions: 9
Compression:
Stored size: 804 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 # TODO: is this duplicated?? 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
9 entries across 9 versions & 1 rubygems