def resolve_related_fields(module_name, link_field)
    a = Association.new(class_for(module_name), link_field)
    if a.target
      fields = a.target.new.attributes.keys
    else
      fields = ["id"]
    end
    fields.to_json
  end
def resolve_related_fields(module_name, link_field)
    a = Association.new(class_for(module_name), link_field)
    if a.target
      fields = a.target.new.attributes.keys
    else
      fields = ["id"]
    end
    fields.to_json
  end
Attempts to return a list of fields for the target of the association.
 i.e. if we are associating Contact -> Account, using the "contacts" link
 field name - this will lookup the contacts association and try to determine
 the target object type (Contact).  It will then pull the fields for that object
 and shove them in the related_fields portion of the get_relationship request.