summaryrefslogtreecommitdiff
path: root/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MooseX/Net/API/Meta/Method/APIMethod.pm')
-rw-r--r--lib/MooseX/Net/API/Meta/Method/APIMethod.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MooseX/Net/API/Meta/Method/APIMethod.pm b/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
index b1d0777..8185522 100644
--- a/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
+++ b/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
@@ -30,6 +30,7 @@ before add_net_api_method => sub {
sub add_net_api_method {
my ($meta, $name, %options) = @_;
+ # accept blessed method
my $code = delete $options{code};
$meta->add_method(
$name,