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
