X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDX%2FActionBuilder%2FNull.pm;h=41109f65ce360b36cb63513671a773a1c5137cbd;hb=2548ce615db02d9ebd44d15359c1220aaf06798f;hp=5aac1b39c646cde483ccc1a0b3e653f07f3a0a9b;hpb=f69aaaffa3d5d090440794721e00cf8fc212ee88;p=scpubgit%2FDX.git diff --git a/lib/DX/ActionBuilder/Null.pm b/lib/DX/ActionBuilder/Null.pm index 5aac1b3..41109f6 100644 --- a/lib/DX/ActionBuilder/Null.pm +++ b/lib/DX/ActionBuilder/Null.pm @@ -4,13 +4,7 @@ use DX::Class; with 'DX::Role::ActionBuilder'; -has target_path => (is => 'ro'); - -around target_path => sub { - my ($orig, $self) = (shift, shift); - return undef unless ref($self); - return $self->$orig(@_); -}; +has target_path => (is => 'ro', isa => ValuePath); sub can_set_value { 0 }