Module: Foobara::TypeDeclarations::LazyElementTypes::Model
- Defined in:
- foobara-0.1.7/projects/model/src/extensions/type_declarations/lazy_element_types/model.rb
Class Method Summary collapse
Class Method Details
.resolve(type) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'foobara-0.1.7/projects/model/src/extensions/type_declarations/lazy_element_types/model.rb', line 7 def resolve(type) attributes_type_declaration = type.declaration_data[:attributes_declaration] type.element_types = TypeDeclarations.strict do handler = Domain.current..handler_for_class(Handlers::ExtendAttributesTypeDeclaration) handler.process_value!(TypeDeclaration.new(attributes_type_declaration)) end end |