package BookShelf::Controller::Format; use base 'Catalyst::Enzyme::CRUD::Controller'; use strict; use warnings; =head1 NAME BookShelf::Controller::Format - Catalyst Enzyme CRUD Controller =head1 SYNOPSIS See L =head1 DESCRIPTION Catalyst Enzyme Controller with CRUD support. =head1 METHODS =head2 model_class Define the model class for this Controller =cut sub model_class { return("BookShelf::Model::BookShelfDB::Format"); } =head1 ACTIONS =head2 add_genre Forward to /genre/add. For unit testing. =cut sub add_genre : Local { my ($self, $c) = @_; $c->forward("/genre/set_crud_controller"); $c->forward("/genre/add"); } =head1 SEE ALSO L, L, L =head1 AUTHOR A clever guy =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1;