Now we depend on latest Moose we are certain to have immutable options
Tomas Doran [Wed, 16 Sep 2009 17:15:52 +0000 (17:15 +0000)]
lib/Catalyst/ClassData.pm

index cd0ad90..89cc1fd 100644 (file)
@@ -49,8 +49,7 @@ sub mk_classdata {
     unless $meta->isa('Class::MOP::Class');
 
   my $was_immutable = $meta->is_immutable;
-  # Need to save immutable_options if they're available from Moose 0.89_02
-  my %immutable_options = $meta->can('immutable_options') ? $meta->immutable_options : ();
+  my %immutable_options = $meta->immutable_options;
 
   $meta->make_mutable if $was_immutable;