aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/InterfaceModel/Action/DBIC/Result/Delete.pm
blob: edc3c79a53650a52ffb16536b2eead9372e92268 (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;
use Reaction::Class;

class Delete is 'Reaction::InterfaceModel::Action', which {
  has '+target_model' => (isa => 'DBIx::Class::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