Sha256: 5004a4a15145a2a9d5948c509973970ddd997fb60f057dba35b516c8e0c55d5d
Contents?: true
Size: 484 Bytes
Versions: 8
Compression:
Stored size: 484 Bytes
Contents
<%- user_editable -%> <%- package source_file.basename -%> <%- source_file.types.select(&:store?).each do |model| -%> <%- import "context" import "#{config.go_package}/model" -%> <%- store_name = "#{model.name}Store" -%> func (s *<%= store_name %>) Validate(ctx context.Context, m *model.<%= model.name %>) error { if err := m.Validate(ctx); err != nil { return err } if err := s.ValidateUniqueness(ctx, m); err != nil { return err } return nil } <%- end -%>
Version data entries
8 entries across 8 versions & 1 rubygems