lib/metadata/ingest/translators/attributes_to_form.rb
def setup_form(group, type, attr_definition)
      attr_trans = single_attribute_translator.new(
        source: @source,
        form: @form,
        group: group,
        type: type,
        attribute_definition: attr_definition
      )

      attr_trans.add_associations_to_form
    end
def setup_form(group, type, attr_definition)
      attr_trans = single_attribute_translator.new(
        source: @source,
        form: @form,
        group: group,
        type: type,
        attribute_definition: attr_definition
      )

      attr_trans.add_associations_to_form
    end
def setup_form ( group , type , attr_definition ) attr_trans = single_attribute_translator . new ( source : @source , form : @form , group : group , type : type , attribute_definition : attr_definition ) attr_trans . add_associations_to_form end
Sets up translation state instance to hold various attributes that need to be passed around,
 and calls helpers to build the necessary associations and attach them to the form.
Sets up translation state instance to hold various attributes that need to be passed around and calls helpers to build the necessary associations and attach them to the form .