clintongormley / Elastic-Model

Use ElasticSearch as a NoSQL database in Perl
9 stars 8 forks source link

Elastic::Doc not applying roles properly to extended classes #13

Closed clintongormley closed 12 years ago

clintongormley commented 12 years ago

Using classes which extend other classes as doc classes was not working correctly. The Elastic::Model::Role::Doc role was being applied to the base class, and then removed after the class was extended:

package Foo;
use Elastic::Doc;
extends 'Foo::Other';