Skip Menu |

This queue is for tickets about the Catalyst-Model-MenuGrinder CPAN distribution.

Report information
The Basics
Id: 77019
Status: open
Priority: 0/
Queue: Catalyst-Model-MenuGrinder

People
Owner: ARODLAND [...] cpan.org
Requestors: frankschwach [...] yahoo.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)



Subject: code in synopsis doesn't work
Using the code in the synopsis: package MyApp::Model::Menu; use base 'Catalyst::Model::MenuGrinder'; __PACKAGE__->config( menu_config => { plugins => [ 'XMLLoader', 'DefaultTarget', 'NullOutput', ], filename => MyApp->path_to('root', 'menu.xml'), }, ); Caused an exception: Couldn't instantiate component "PlasmoGem::Web::Model::Menu", "Can't coerce array into hash Looking at WWW::MenuGrinder, it seems that 'plugins' does indeed need a HashRef, not an ArrayRef as shown in the docs. Versions of the relevant modules on my system: Name: Catalyst::Model::MenuGrinder Version: 0.06 Name: WWW::MenuGrinder Version: 0.06 Name: Catalyst::Devel Version: 1.36 Name: Catalyst::Runtime Version: 5.90011
Thank you for the report. I did change the method of listing plugins, and forgot to update the SYNOPSIS. I will make a new release with updated documentation.