use strict;
use warnings;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use Moose ();
use Carp 'confess';
my $policy = shift || return;
unless (Moose::_is_class_already_loaded($policy)) {
- ($policy->require) or confess "Could not load policy module " .
- "'$policy' because : $UNIVERSAL::require::ERROR";
+ # otherwise require it ...
+ my $file = $policy . '.pm';
+ $file =~ s{::}{/}g;
+ eval { CORE::require($file) };
+ confess "Could not load policy module " .
+ "'$policy' because : $UNIVERSAL::require::ERROR"
+ if $@;
}
my $package = caller();
Stevan Little E<lt>stevan@iinteractive.comE<gt>
-Eric Wilhelm E<lt>...E<gt>
+Eric Wilhelm
=head1 COPYRIGHT AND LICENSE