From: Tomas Doran Date: Wed, 16 Sep 2009 17:15:52 +0000 (+0000) Subject: Now we depend on latest Moose we are certain to have immutable options X-Git-Tag: 5.80013~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=46635e11b624ea371890e7b0740b68e8eaa07b1f Now we depend on latest Moose we are certain to have immutable options --- diff --git a/lib/Catalyst/ClassData.pm b/lib/Catalyst/ClassData.pm index cd0ad90..89cc1fd 100644 --- a/lib/Catalyst/ClassData.pm +++ b/lib/Catalyst/ClassData.pm @@ -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;