pub fn condense_name(&self) -> String {
        let clean_name = self.clean_name();
        if let Some(ref foreign) = self.foreign {
            let foreign = foreign.clone();
            if clean_name.len() > foreign.table.len() {
                return clean_name.trim_right_matches(&foreign.table)
                    .trim_right_matches("_")
                    .to_owned();
            }
        }
        capitalize(&clean_name)
    }
/// shorten, compress the name based on the table it points to
/// parent_organization_id becomes parent
shorten, compress the name based on the table it points to
parent_organization_id becomes parent
shorten compress the name based on the table it points to parent_organization_id becomes parent
pub fn condense_name(&self) -> String {
        let clean_name = self.clean_name();
        if let Some(ref foreign) = self.foreign {
            let foreign = foreign.clone();
            if clean_name.len() > foreign.table.len() {
                return clean_name.trim_right_matches(&foreign.table)
                    .trim_right_matches("_")
                    .to_owned();
            }
        }
        capitalize(&clean_name)
    }
pub fn condense_name ( & self ) -> String { let clean_name = self . clean_name ( ) ; if let Some ( ref foreign ) = self . foreign { let foreign = foreign . clone ( ) ; if clean_name . len ( ) > foreign . table . len ( ) { return clean_name . trim_right_matches ( & foreign . table ) . trim_right_matches ( " " ) . to_owned ( ) ; } } capitalize ( & clean_name ) }
shorten, compress the name based on the table it points to
parent_organization_id becomes parent
shorten compress the name based on the table it points to parent_organization_id becomes parent
&self
&self