squelch a warning in Reaction::Class, port from BindLex to Component::ACCEPT_CONTEXT
[catagits/Reaction.git] / lib / Reaction / InterfaceModel / Action / DBIC / ResultSet / DeleteAll.pm
CommitLineData
b8faba69 1package Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll;
2
3use Reaction::Types::DBIC;
4use Reaction::Class;
5use Reaction::InterfaceModel::Action;
6
7class DeleteAll is 'Reaction::InterfaceModel::Action', which {
8
9 has '+target_model' => (isa => 'DBIx::Class::ResultSet');
10
11 sub can_apply { 1 }
12
13 implements do_apply => as {
14 my $self = shift;
15 return $self->target_model->delete_all;
16 };
17
18};
19
201;
21
22
23=head1 NAME
24
25Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll
26
27=head1 DESCRIPTION
28
29Deletes every item in the target_model ResultSet
30
31=head2 target_model
32
33=head2 error_for_attribute
34
35=head2 sync_all
36
37=head1 AUTHORS
38
39See L<Reaction::Class> for authors.
40
41=head1 LICENSE
42
43See L<Reaction::Class> for the license.
44
45=cut