projects
/
gitmo/MooseX-Singleton.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
61c6d58
)
Make initialize work
Dave Rolsky [Fri, 25 Dec 2009 15:35:27 +0000 (09:35 -0600)]
lib/MooseX/Singleton/Role/Object.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Singleton/Role/Object.pm
b/lib/MooseX/Singleton/Role/Object.pm
index
b09613f
..
105ec7e
100644
(file)
--- a/
lib/MooseX/Singleton/Role/Object.pm
+++ b/
lib/MooseX/Singleton/Role/Object.pm
@@
-10,7
+10,7
@@
sub initialize {
my $existing = $class->meta->existing_singleton;
confess "Singleton is already initialized" if $existing;
- return $class->SUPER::new(@args);
+ return $class->new(@args);
}
override new => sub {