NAME

Catalyst::Plugin::DataHash - Inject a Catalyst::Model::DataHash and make that default_model

SYNOPSIS

package MyApp;

use Catalyst qw/DataHash/;

MyApp->setup;

DESCRIPTION

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);
}

SEE ALSO

Catalyst, Data::Perl::Role::Collection::Hash, CatalystX::InjectComponent.

AUTHOR

John Napiorkowski email:jjnapiork@cpan.org

COPYRIGHT & LICENSE

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.