Skip to content

Commit

Permalink
add an ENV variable to force plugin registration, whatever the suppor…
Browse files Browse the repository at this point in the history
…ted version is
  • Loading branch information
dams committed Sep 18, 2012
1 parent 531b95f commit 78cf331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer/Plugin.pm
Expand Up @@ -133,7 +133,7 @@ sub register_plugin {
my $plugin_version = eval "\$${plugin}::VERSION" || '??';

# make sure the plugin is compatible with this version of Dancer
grep { $_ eq $dancer_major_version } @$supported_versions
( grep { $_ eq $dancer_major_version } @$supported_versions || $ENV{DANCER_FORCE_PLUGIN_REGISTRATION} )
or croak "$plugin $plugin_version does not support Dancer $dancer_major_version.";


Expand Down

0 comments on commit 78cf331

Please sign in to comment.