From 2cfd4854006b81bd03743d05c2b3bb54a839e1b4 Mon Sep 17 00:00:00 2001 From: doy Date: Sun, 26 Apr 2009 17:33:28 -0500 Subject: manually specify our attribute trait when we also specify a new metaclass --- lib/Bot/Games/Game.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm index b9a17b0..3bf8f7b 100644 --- a/lib/Bot/Games/Game.pm +++ b/lib/Bot/Games/Game.pm @@ -10,8 +10,12 @@ has help => ( needs_init => 0, ); +# XXX: traits has to be specified manually here because the metaclass option +# overrides anything set up by MetaRole - once MXAH can use traits, we should +# just use that instead. has players => ( metaclass => 'Collection::Array', + traits => [qw/Bot::Games::Meta::Role::Attribute/], is => 'ro', isa => 'ArrayRef[Str]', auto_deref => 1, -- cgit v1.2.3-54-g00ecf