From: Jesse Luehrs Date: Thu, 10 Sep 2009 02:21:07 +0000 (-0500) Subject: override _default_immutable_options rather than _immutable_options X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fattic%2Fsave_immutable_options;p=gitmo%2FMoose.git override _default_immutable_options rather than _immutable_options --- diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 4ab875c..a024372 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -68,16 +68,15 @@ sub initialize { ); } -sub _immutable_options { - my ( $self, @args ) = @_; +sub _default_immutable_options { + my ( $self ) = @_; - $self->SUPER::_immutable_options( + return ( + $self->SUPER::_default_immutable_options, inline_destructor => 1, # Moose always does this when an attribute is created inline_accessors => 0, - - @args, ); }