NAME
Catalyst::ActionRole::CurrentModel - Set the current model via an action attribute
SYNOPSIS
package MyApp::Controller::Example;
use Moose;
use MooseX::MethodAttributes;
extends 'Catalyst::Controller';
# Same as $c->stash(current_model => 'Schema::Person');
sub root :Chained(/) Does(CurrentModel) Model(Schema::Person) {
my ($self, $c) = @_;
}
__PACKAGE__->meta->make_immutable;
DESCRIPTION
Just an actionrole to let you set the current model via an attribute
AUTHOR
John Napiorkowski <jnapiork@cpan.org>
COPYRIGHT
Copyright (c) 2021 the above named AUTHOR and CONTRIBUTORS
LICENSE
You may distribute this code under the same terms as Perl itself.