X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FAttribute.pm;h=b4511d0a6d9f1166e3aca3fe53e349914fbc6e62;hp=cc43a3711fe3a3f38f5cb050f0b90c0a4b896603;hb=21ee5bbbc20a3366955be77a589206295b5c0f9e;hpb=cb80a70a3d6101e0bc8f6576765a2d6c588d2ecd diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index cc43a37..b4511d0 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -375,10 +375,7 @@ sub _make_delegation_method { my $delegator = $self->delegation_metaclass; Mouse::Util::load_class($delegator); - return $delegator->_generate_delegation($self, $handle, - ref($method_to_call) eq 'ARRAY' - ? @{$method_to_call} - : $method_to_call); + return $delegator->_generate_delegation($self, $handle, $method_to_call); } sub throw_error{