From: Shawn M Moore <sartak@gmail.com>
Date: Sun, 31 May 2009 02:06:22 +0000 (-0400)
Subject: Use role names for consistency with ToRole
X-Git-Tag: 0.80~29
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=784850530c61dd0609e56a4f5b34c6f54676e5bd;p=gitmo%2FMoose.git

Use role names for consistency with ToRole
---

diff --git a/lib/Moose/Meta/Role/Application/RoleSummation.pm b/lib/Moose/Meta/Role/Application/RoleSummation.pm
index 74f9c54..8449f0b 100644
--- a/lib/Moose/Meta/Role/Application/RoleSummation.pm
+++ b/lib/Moose/Meta/Role/Application/RoleSummation.pm
@@ -173,7 +173,7 @@ sub apply_methods {
             if ($seen->{method}->body != $method->{method}->body) {
                 $c->add_conflicted_method(
                     name  => $method->{name},
-                    roles => [$method->{role}, $seen->{role}],
+                    roles => [$method->{role}->name, $seen->{role}->name],
                 );
 
                 delete $method_map{$method->{name}};