fixup for hashref in action attrs from config
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Base.pm
index 863e688..561fe97 100644 (file)
@@ -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) ) {