NAME
Catalyst::Plugin::Data::Pensieve - Easy access to Data::Pensieve within Catalyst applications
SYNOPSIS
use Catalyst qw/
Data::Pensieve
/;
__PACKAGE__->config(
'Plugin::Data::Pensieve' => {
revision_model => 'DB::Revision',
revision_data_model => 'DB::RevisionData',
definitions => {
foo => [ qw/ foo_id name bar baz / ],
},
},
);
sub update_data :Local :Args(3) {
my ($self, $c, $pk, $key, $value) = @_;
$c->pensieve->store_revisions(
some_kinda_data => $pk, {
$key => $value
}
);
}
AUTHOR
Michael Aquilina <aquilina@cpan.org>
Developed for Grant Street Group's Testafy <http://testafy.com>