blob: e1b2ed66a4984c9e36829e9a80c1758523f73ffd (
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
37
38
39
40
41
42
43
44
45
|
package Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll;
use Reaction::Types::DBIC;
use Reaction::Class;
use Reaction::InterfaceModel::Action;
class DeleteAll is 'Reaction::InterfaceModel::Action', which {
has '+target_model' => (isa => 'DBIx::Class::ResultSet');
sub can_apply { 1 }
implements do_apply => as {
my $self = shift;
return $self->target_model->delete_all;
};
};
1;
=head1 NAME
Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll
=head1 DESCRIPTION
Deletes every item in the target_model ResultSet
=head2 target_model
=head2 error_for_attribute
=head2 sync_all
=head1 AUTHORS
See L<Reaction::Class> for authors.
=head1 LICENSE
See L<Reaction::Class> for the license.
=cut
|