Skip to content

Instantly share code, notes, and snippets.

@dhoss
Created July 4, 2010 19:46
Show Gist options
  • Save dhoss/463699 to your computer and use it in GitHub Desktop.
Save dhoss/463699 to your computer and use it in GitHub Desktop.
sub parent {
my $self = shift;
my $pcol = $self->parent_column;
return $self->result_source->resultset->find(
$self->get_column ($pcol)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment