Skip to content

Commit

Permalink
Make also immutable anonymous final subclasses.
Browse files Browse the repository at this point in the history
  • Loading branch information
bokutin committed Mar 26, 2012
1 parent 6ef69d4 commit 9e8c87c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Mason/PluginManager.pm
Expand Up @@ -79,6 +79,8 @@ method apply_plugins_to_class ($class: $base_subclass, $name, $plugins) {
$base_subclass, $name, $plugins, \@roles, $final_subclass )
if $log->is_debug;

$final_subclass->meta->make_immutable if $final_subclass->can('meta');

$apply_plugins_cache{$key} = $final_subclass;
return $final_subclass;
}
Expand Down

0 comments on commit 9e8c87c

Please sign in to comment.