[Jifty-commit] r6637 - in jifty/trunk: lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 17 14:57:18 EDT 2009


Author: sartak
Date: Tue Mar 17 14:57:18 2009
New Revision: 6637

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/API.pm

Log:
 r81321 at onn:  sartak | 2009-03-17 14:57:15 -0400
 Filter out ::SUPER pseudoclasses only once, and for all


Modified: jifty/trunk/lib/Jifty/API.pm
==============================================================================
--- jifty/trunk/lib/Jifty/API.pm	(original)
+++ jifty/trunk/lib/Jifty/API.pm	Tue Mar 17 14:57:18 2009
@@ -105,7 +105,7 @@
                 push @actions, $classname unless $seen{$classname};
             }
         }
-        $self->{all_actions} = \@actions;
+        $self->{all_actions} = [ grep { not /::SUPER$/ } @actions ];
     }
     return @{ $self->{all_actions} };
 }
@@ -392,7 +392,7 @@
 
 sub actions {
     my $self = shift;
-    return sort grep { not /::SUPER$/ and $self->is_allowed($_) } $self->all_actions;
+    return sort grep { $self->is_allowed($_) } $self->all_actions;
 }
 
 =head2 visible_actions
@@ -405,7 +405,7 @@
 
 sub visible_actions {
     my $self = shift;
-    return sort grep { not /::SUPER$/ and $self->is_visible($_) } $self->all_actions;
+    return sort grep { $self->is_visible($_) } $self->all_actions;
 }
 
 =head1 SEE ALSO


More information about the Jifty-commit mailing list