diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-07 15:48:25 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-07 15:48:25 +0000 |
commit | 1810d30231d48a745bab3931c18044bc19c85e61 (patch) | |
tree | 1bf68006c63547eefb0e17dc7bda3b51916e1407 /lib/Reaction/UI/Controller/Collection.pm | |
parent | 9964b409a3ceaf45a9e07dd0f6a3d77d13ae3f1d (diff) | |
download | reaction-1810d30231d48a745bab3931c18044bc19c85e61.tar.gz reaction-1810d30231d48a745bab3931c18044bc19c85e61.zip |
squelch a warning in Reaction::Class, port from BindLex to Component::ACCEPT_CONTEXT
Diffstat (limited to 'lib/Reaction/UI/Controller/Collection.pm')
-rw-r--r-- | lib/Reaction/UI/Controller/Collection.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Reaction/UI/Controller/Collection.pm b/lib/Reaction/UI/Controller/Collection.pm index d7d727b..75ceef8 100644 --- a/lib/Reaction/UI/Controller/Collection.pm +++ b/lib/Reaction/UI/Controller/Collection.pm @@ -45,14 +45,14 @@ sub list :Chained('base') :PathPart('') :Args(0) { sub object :Chained('base') :PathPart('id') :CaptureArgs(1) { my ($self, $c, $key) = @_; - my $object :Stashed = $self->get_collection($c)->find($key); + my $object = $self->get_collection($c)->find($key); confess "Object? what object?" unless $object; # should be a 404. + $c->stash(object => $object); } sub view :Chained('object') :Args(0) { my ($self, $c) = @_; - my $object :Stashed; - $c->forward(basic_page => [{object => $object}]); + $c->forward(basic_page => [{object => $c->stash->{object}}]); } sub basic_page : Private { |