have to use a real app in test due to changes in runtime COMPONENT
[catagits/Catalyst-Component-ACCEPT_CONTEXT.git] / t / lib / TestApp / Model / Test.pm
CommitLineData
75f37967 1# Copyright (c) 2007 Jonathan Rockway <jrockway@cpan.org>
2
3package TestApp::Model::Test;
4use strict;
5use warnings;
6use base qw(Catalyst::Component::ACCEPT_CONTEXT Catalyst::Model);
7
8my $foo = 'bar';
9sub new {
10 my $self = shift;
c9c41e4d 11 $self = $self->next::method(@_);
75f37967 12 $foo = $self->context->config->{foo};
13 return $self;
14}
15
16sub message {
17 my $self = shift;
18 return $self->context->stash->{message};
19}
20
21sub foo {
22 return $foo;
23}
24
251;
26