diff options
author | doy <doy@tozt.net> | 2009-04-26 17:33:28 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-04-26 17:33:28 -0500 |
commit | 2cfd4854006b81bd03743d05c2b3bb54a839e1b4 (patch) | |
tree | d12852bf6508593f9546d799b948131b032ee287 | |
parent | 4e0d99b1dd52828f284111825fdc5c5afc53a33f (diff) | |
download | bot-games-2cfd4854006b81bd03743d05c2b3bb54a839e1b4.tar.gz bot-games-2cfd4854006b81bd03743d05c2b3bb54a839e1b4.zip |
manually specify our attribute trait when we also specify a new metaclass
-rw-r--r-- | lib/Bot/Games/Game.pm | 4 |
1 files changed, 4 insertions, 0 deletions
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, |