Skip to content

Commit

Permalink
Use the proepr class name for control of DSL:
Browse files Browse the repository at this point in the history
The variable that was used reflects the class (Dancer2::Plugin)
instead of the class that is importing. This allows us to properly
track the right class so we know whether to import to it or not.
  • Loading branch information
xsawyerx authored and veryrusty committed Mar 3, 2016
1 parent dee3f28 commit f5cf7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer2/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ sub _exporter_expand_tag {

my $caller = $global->{into};

$name eq 'no_dsl' and $no_dsl->{$class} = 1;
$name eq 'no_dsl' and $no_dsl->{$caller} = 1;
# no_dsl check here is for compatibility only
# it will be removed soon!
return _exporter_plugin($caller)
Expand Down

0 comments on commit f5cf7cd

Please sign in to comment.