override _default_immutable_options rather than _immutable_options attic/save_immutable_options
Jesse Luehrs [Thu, 10 Sep 2009 02:21:07 +0000 (21:21 -0500)]
lib/Moose/Meta/Class.pm

index 4ab875c..a024372 100644 (file)
@@ -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,
     );
 }