cannot Sereal::Encode DBIC row

This commit is contained in:
Oliver Gorwits
2017-10-09 15:46:09 +01:00
parent 0a575f02ba
commit 5b7ce3f797
2 changed files with 2 additions and 14 deletions

View File

@@ -1,7 +1,5 @@
package App::Netdisco::Backend::Job;
use App::Netdisco::Util::Device 'get_device';
use Moo;
use namespace::clean;
@@ -26,18 +24,6 @@ foreach my $slot (qw/
);
}
# $job->device is always a DBIC row
around BUILDARGS => sub {
my ( $orig, $class, @args ) = @_;
my $params = $args[0] or return $class->$orig(@args);
if ((ref {} eq ref $params) and $params->{device}) {
$params->{device} = get_device( $params->{device} );
}
return $class->$orig(@args);
};
=head1 METHODS
=head2 summary