blob: 4d81486b43fb7e349f0b1b006658b518f579b9ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package Reaction::InterfaceModel::Action::DBIC::Result::Delete;
use Reaction::Types::DBIC 'Row';
use Reaction::Class;
class Delete is 'Reaction::InterfaceModel::Action', which {
has '+target_model' => (isa => Row);
sub can_apply { 1 }
implements do_apply => as {
my $self = shift;
return $self->target_model->delete;
};
};
1;
=head1 NAME
Reaction::InterfaceModel::Action::DBIC::Result::Delete
=head1 DESCRIPTION
=head2 target_model
=head1 AUTHORS
See L<Reaction::Class> for authors.
=head1 LICENSE
See L<Reaction::Class> for the license.
=cut
|