[Bps-public-commit] App-Changeloggr branch, master, updated. de5eb65a956c67d0397484a7cc7826f5e412edc8

sartak at bestpractical.com sartak at bestpractical.com
Fri May 22 16:20:41 EDT 2009


The branch, master has been updated
       via  de5eb65a956c67d0397484a7cc7826f5e412edc8 (commit)
      from  f69f16883b966083bd734bf5b5cfde1e8d5a0509 (commit)

Summary of changes:
 lib/App/Changeloggr/Model/Change.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit de5eb65a956c67d0397484a7cc7826f5e412edc8
Author: Shawn M Moore <sartak at gmail.com>
Date:   Fri May 22 16:18:29 2009 -0400

    Limit output votes to visible tags

diff --git a/lib/App/Changeloggr/Model/Change.pm b/lib/App/Changeloggr/Model/Change.pm
index e40285c..9c01574 100644
--- a/lib/App/Changeloggr/Model/Change.pm
+++ b/lib/App/Changeloggr/Model/Change.pm
@@ -61,12 +61,15 @@ sub votes {
 sub grouped_votes {
     my $self = shift;
     my $votes = $self->votes;
+
+    $votes->limit_to_visible('tag');
     $votes->column(
         column => 'tag',
     );
     $votes->group_by(
         column => 'tag',
     );
+
     $votes->order_by(
         function => 'count(*)',
         order => 'desc',

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list