in reply to Use Moose in Controller and Model
I think the problems you are experiencing stem from not inheriting from Moose::Object. You can warn out the values in @ISA for the three different samples to verify.
From the Moose documentation:
extends (@superclasses)
This function will set the superclass(es) for the current class.
This approach is recommended instead of use base, because use base actually pushes onto the class's @ISA, whereas extends will replace it. This is important to ensure that classes which do not have superclasses still properly inherit from Moose::Object.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use Moose in Controller and Model
by sman (Beadle) on Jan 25, 2010 at 20:04 UTC |