projects
/
catagits/Catalyst-Action-REST.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Catalyst::Action::Serialize::View uses the calculated $stash_key; amended C::C::REST...
[catagits/Catalyst-Action-REST.git]
/
lib
/
Catalyst
/
Action
/
Serialize
/
YAML.pm
diff --git
a/lib/Catalyst/Action/Serialize/YAML.pm
b/lib/Catalyst/Action/Serialize/YAML.pm
index
c943569
..
4879af9
100644
(file)
--- a/
lib/Catalyst/Action/Serialize/YAML.pm
+++ b/
lib/Catalyst/Action/Serialize/YAML.pm
@@
-24,7
+24,7
@@
sub execute {
) || 'rest';
my $output;
eval {
- $output = Dump($c->stash->{$stash_key});
+ $output = $self->serialize($c->stash->{$stash_key});
};
if ($@) {
return $@;
@@
-33,4
+33,10
@@
sub execute {
return 1;
}
+sub serialize {
+ my $self = shift;
+ my $data = shift;
+ Dump($data);
+}
+
1;