Michael Aquilina > Catalyst-Plugin-Data-Pensieve > Catalyst::Plugin::Data::Pensieve

Download:
Catalyst-Plugin-Data-Pensieve-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

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>

syntax highlighting: