Store the role which first defines an attribute, and pass that along when cloning.
authorDave Rolsky <autarch@urth.org>
Mon, 14 Mar 2011 04:04:51 +0000 (23:04 -0500)
committerDave Rolsky <autarch@urth.org>
Mon, 14 Mar 2011 06:25:10 +0000 (01:25 -0500)
commit3cfeb291568b14dcc76b78148363b4b5a5b8da6d
tree8b04350afc0cf8d5b422aa363f1ffb9d1c8473cd
parentf9731c39a959c1b17f5efa0b9935634ef5e0f3fa
Store the role which first defines an attribute, and pass that along when cloning.

Use the original role's applied_attribute_metaclass when we finally apply the
attribute, rather than the _current_ role's applied_attribute_metaclass.
lib/Moose/Meta/Role/Application/ToClass.pm
lib/Moose/Meta/Role/Attribute.pm
t/roles/role_attr_application.t