projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fixup for hashref in action attrs from config
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Base.pm
diff --git
a/lib/Catalyst/Base.pm
b/lib/Catalyst/Base.pm
index
863e688
..
561fe97
100644
(file)
--- a/
lib/Catalyst/Base.pm
+++ b/
lib/Catalyst/Base.pm
@@
-251,7
+251,7
@@
sub _parse_attrs {
my $raw = $raw_attributes{$key};
- foreach my $value (ref($raw) ? @$raw : $raw) {
+ foreach my $value (ref($raw) eq 'ARRAY' ? @$raw : $raw) {
my $meth = "_parse_${key}_attr";
if ( $self->can($meth) ) {