NAME

SweetPea::Application::Model - Model support for SweetPea-Application.

SYNOPSIS

... from inside SweetPea::Application or a Controller;
#access Model::Users::create_account()
$s->model('Users')->create_account();

METHODS

new

The new method instantiates a new SweetPea::Application::Model object
which loads model packages on requests ands provides accessors to it's
functions. 

$s->plug( 'model', sub { return SweetPea::Application::Model->new($s); });

AUTHOR

Al Newkirk, <al.newkirk at awnstudio.com>