def nested_models
      model_entities = []
      nested_attributes.each { |attr| model_entities << send(attr.to_sym) } if nested_attributes?
      model_entities.flatten
    end
def nested_models
      model_entities = []
      nested_attributes.each { |attr| model_entities << send(attr.to_sym) } if nested_attributes?
      model_entities.flatten
    end
For each attribute name in nested_attributes extract and return the nested model objects.