Skip to content

Commit

Permalink
If we're just loading Mo*se don't throw an error, throw a mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
sartak committed Feb 3, 2009
1 parent a7d1677 commit a061c35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Any/Moose.pm
Expand Up @@ -69,6 +69,9 @@ sub any_moose {

return $fragment if Class::MOP::does_metaclass_exist($package);

# If we're loading up the backing class, then give them Mouse
return 'Mouse' if $fragment eq 'Moose';

require Carp;
Carp::croak "Neither Moose nor Mouse backs the '$package' package.";
}
Expand Down

0 comments on commit a061c35

Please sign in to comment.