Skip to content

Commit

Permalink
Revert fed15b9 to make sqlt_deploy_hook() chaining work properly
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information
melo committed May 13, 2011
1 parent 4cc6b75 commit ffdb8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DBIx/Class/ResultSource.pm
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,8 @@ sub default_sqlt_deploy_hook {

my $class = $self->result_class;

if ($class and my $hook = $class->can('sqlt_deploy_hook')) {
$self->$hook(@_);
if ($class and $class->can('sqlt_deploy_hook')) {
$class->sqlt_deploy_hook(@_);
}
}

Expand Down

0 comments on commit ffdb8e2

Please sign in to comment.