From d322e62631ca94b4aeae23f3898f4445f1275eb9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 2 Jun 2009 00:12:35 -0500 Subject: use method_metaclass rather than hardcoding Moose::Meta::Method --- lib/Bot/Games/OO/Game.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Bot') diff --git a/lib/Bot/Games/OO/Game.pm b/lib/Bot/Games/OO/Game.pm index 2da71bd..218eb32 100644 --- a/lib/Bot/Games/OO/Game.pm +++ b/lib/Bot/Games/OO/Game.pm @@ -9,7 +9,8 @@ sub command { my %args = @_; my $method_meta = $class->meta->get_method($name); - my $superclass = Moose::blessed($method_meta) || 'Moose::Meta::Method'; + my $superclass = Moose::blessed($method_meta) + || $class->meta->method_metaclass; my @method_metaclass_roles = ('Bot::Games::Trait::Method::Command'); push @method_metaclass_roles, 'Bot::Games::Trait::Method::Formatted' if $args{formatter}; -- cgit v1.2.3-54-g00ecf