- fixing the 'apply_all_roles' keyword so that it will not
trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
+ * Moose::Meta::Class
+ - added ->create method which now supports roles (thanks to jrockway)
+ - added tests for this
+
* Moose::Util::TypeConstraints
- it is now possible to make anon-enums by passing 'enum' an
ARRAY ref instead of the $name => @values. Everything else
use Carp 'confess';
use Scalar::Util 'weaken', 'blessed', 'reftype';
-our $VERSION = '0.20';
+our $VERSION = '0.21';
our $AUTHORITY = 'cpan:STEVAN';
use Moose::Meta::Method::Overriden;
my $class = $self->SUPER::create($package_name, %options);
- if(exists $options{roles} && defined $options{roles}){
+ if (exists $options{roles}) {
Moose::Util::apply_all_roles($class, @{$options{roles}});
}