[Jifty-commit] r3147 - in jifty/trunk:
lib/Jifty/Plugin/Authentication/Password/Action t/TestApp/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Apr 17 02:57:45 EDT 2007
Author: jesse
Date: Tue Apr 17 02:57:40 2007
New Revision: 3147
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Signup.pm
jifty/trunk/t/TestApp/t/15-template-subclass.t
Log:
r55589 at apc: jesse | 2007-04-16 21:11:21 +0200
* Auth::Password plugin: Quiet down warning about a nonexistent class in @ISA by defering that until ->new time.
Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Signup.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Signup.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Signup.pm Tue Apr 17 02:57:40 2007
@@ -9,9 +9,17 @@
package Jifty::Plugin::Authentication::Password::Action::Signup;
our @ISA;
-{
+
+=head2 new
+
+Make this action an App::Action::CreateUser at runtime
+
+=cut
+
+sub new {
my $class = Jifty->app_class('Action', 'CreateUser');
- push @ISA, $class;
+ push @ISA, $class unless grep {$_ eq $class } @ISA;
+ return shift->new(@_);
}
=head2 arguments
Modified: jifty/trunk/t/TestApp/t/15-template-subclass.t
==============================================================================
--- jifty/trunk/t/TestApp/t/15-template-subclass.t (original)
+++ jifty/trunk/t/TestApp/t/15-template-subclass.t Tue Apr 17 02:57:40 2007
@@ -79,3 +79,5 @@
}
};
+
+1;
More information about the Jifty-commit
mailing list