Sha256: e62d3088c65a0362fc346430539e4bcb485705a45b09c83639cc11a594f138cf
Contents?: true
Size: 361 Bytes
Versions: 4
Compression:
Stored size: 361 Bytes
Contents
# frozen_string_literal: true class Core::Entities::<%= @subject_class %> < Dry::Struct <% (['id'] + @fields + @uploaders + ['created_at', 'updated_at']).each do |field| -%> <% column_type = get_column_type(field) -%> <% dry_type = @entity_type_mapping[column_type.to_s] || 'Types::Strict::String' -%> attribute :<%= field %>, <%= dry_type %> <% end -%> end
Version data entries
4 entries across 4 versions & 1 rubygems