[Rt-commit] rt branch, update-action, updated. 1bc971ac9a846a35b83a312475bfd7013fda1ee8
sartak at bestpractical.com
sartak at bestpractical.com
Wed Dec 9 07:57:46 EST 2009
The branch, update-action has been updated
via 1bc971ac9a846a35b83a312475bfd7013fda1ee8 (commit)
from 37e8dba49a360aedef034f97019046f736118bd9 (commit)
Summary of changes:
lib/RT/Action/TicketAction.pm | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 1bc971ac9a846a35b83a312475bfd7013fda1ee8
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Dec 9 07:57:32 2009 -0500
Use $class since we have it, not __PACKAGE__
diff --git a/lib/RT/Action/TicketAction.pm b/lib/RT/Action/TicketAction.pm
index 33647bd..3ee16f3 100644
--- a/lib/RT/Action/TicketAction.pm
+++ b/lib/RT/Action/TicketAction.pm
@@ -142,13 +142,13 @@ sub _add_parameter_type {
no strict 'refs';
- *{__PACKAGE__."::$get_method"} = sub {
+ *{$class."::$get_method"} = sub {
use strict 'refs';
my $self = shift;
return @{ $self->{$key} || [] };
};
- *{__PACKAGE__."::$add_method"} = sub {
+ *{$class."::$add_method"} = sub {
use strict 'refs';
my $self = shift;
my %args = @_;
@@ -167,8 +167,8 @@ sub _add_parameter_type {
$shared_canonicalizer = "_canonicalize_$name"
if $shared_canonicalizer eq '1';
- unless (__PACKAGE__->can("canonicalize_$name")) {
- *{__PACKAGE__."::canonicalize_$name"} = sub {
+ unless ($class->can("canonicalize_$name")) {
+ *{$class."::canonicalize_$name"} = sub {
use strict 'refs';
my $self = shift;
my $value = shift;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list