just a little more POD
[catagits/Reaction.git] / lib / Reaction / InterfaceModel / Action / DBIC / ResultSet / DeleteAll.pm
CommitLineData
b8faba69 1package Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll;
2
e739c9a2 3use Reaction::Types::DBIC 'ResultSet';
b8faba69 4use Reaction::Class;
5use Reaction::InterfaceModel::Action;
6
81393881 7use namespace::clean -except => [ qw(meta) ];
8extends 'Reaction::InterfaceModel::Action';
b8faba69 9
b8faba69 10
b8faba69 11
81393881 12has '+target_model' => (isa => ResultSet);
b8faba69 13
81393881 14sub can_apply { 1 }
15sub do_apply {
16 my $self = shift;
17 return $self->target_model->delete_all;
b8faba69 18};
19
81393881 20__PACKAGE__->meta->make_immutable;
21
22
b8faba69 231;
24
25
26=head1 NAME
27
28Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll
29
30=head1 DESCRIPTION
31
32Deletes every item in the target_model ResultSet
33
34=head2 target_model
35
36=head2 error_for_attribute
37
38=head2 sync_all
39
40=head1 AUTHORS
41
42See L<Reaction::Class> for authors.
43
44=head1 LICENSE
45
46See L<Reaction::Class> for the license.
47
48=cut