Catalyst::Plugin::DataHash - Inject a Catalyst::Model::DataHash and make that default_model
package MyApp; use Catalyst qw/DataHash/; MyApp->setup;
Plugin that injects a model into your application that is based off Catalyst::Model::DataHash and sets that to be the default_model for the application. This way you can use it without having to name the model in your actions. For example:
sub myaction :Local { my ($self, $c) = @_; $c->model->set(a=>1); }
Catalyst, Data::Perl::Role::Collection::Hash, CatalystX::InjectComponent.
John Napiorkowski email:jjnapiork@cpan.org
Copyright 2015, John Napiorkowski email:jjnapiork@cpan.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Model::DataHash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::DataHash
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::DataHash
For more information on module installation, please visit the detailed CPAN module installation guide.