lib/rom/repository/struct_builder.rb in rom-repository-1.0.1 vs lib/rom/repository/struct_builder.rb in rom-repository-1.0.2

- old
+ new

@@ -48,10 +48,10 @@ [name, model.optional] end end def visit_attribute(attr) - [attr.aliased? && !attr.wrapped? ? attr.alias : attr.name, attr.type] + [attr.aliased? && !attr.wrapped? ? attr.alias : attr.name, attr.to_read_type] end def build_class(name, parent, &block) Dry::Core::ClassBuilder.new(name: class_name(name), parent: parent).call(&block) end