coerce => 1,
handles => [ 'id' ],
);
- __PACKAGE__->meta->make_immutable;
+ # This class shouldn't be immutable when using Moose, or the
+ # coercing attributes will not be updated with the future coercions.
+ __PACKAGE__->meta->make_immutable if any_moose() ne 'Moose';
}
# Another class the user wants to use instead of X (cannot be changed)