func (m *<%= type.name %>) PrepareFields() error { <%- type.fields.each do |field| -%> <%- if field.prepare_method.present? -%> m.<%= field.name %> = m.<%= field.name %>.<%= field.prepare_method %>() <%- end -%> <%- end -%> return nil }