Subject: | Wrong metaclass on controller actions |
After upgrading to Moose 1.05 from 1.03 the following stopped working:
package TestApp::Controller::Moose::NoAttributes;
use Moose;
extends qw/Catalyst::Controller/;
__PACKAGE__->config(
actions => {
test => { Local => undef }
}
);
sub test {
}
1;
It dies at compile time with:
Couldn't load class (TestApp) because: Can't locate object method
"attributes" via package "Moose::Meta::Method" ...
Failing test and (workaround) fix at http://paste.scsys.co.uk/44331.
Putting "extends" into a BEGIN block fixes the problem as well.