1 package Reaction::UI::ViewPort::Field::RelatedObject;
4 use Scalar::Util 'blessed';
6 class RelatedObject is 'Reaction::UI::ViewPort::Field', which {
8 has value_map_method => (
9 isa => 'Str', is => 'ro', required => 1, default => sub { 'display_name' },
12 around _value_string_from_value => sub {
15 my $meth = $self->value_map_method;
16 return $self->$orig(@_)->$meth;