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

sartak at bestpractical.com sartak at bestpractical.com
Wed May 27 14:55:33 EDT 2009


The branch, master has been updated
       via  4d11f7b4fd065f6e0a44b37a59e82e5cb9598901 (commit)
      from  535430627af83f35510a11eab87c09d17c2e1116 (commit)

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

- Log -----------------------------------------------------------------
commit 4d11f7b4fd065f6e0a44b37a59e82e5cb9598901
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed May 27 14:51:26 2009 -0400

    Revert "No need to empty order_by" -- we need it for postgres's count
    
    This reverts commit 535430627af83f35510a11eab87c09d17c2e1116.

diff --git a/lib/App/Changeloggr/Model/Change.pm b/lib/App/Changeloggr/Model/Change.pm
index 5ce528d..38d024c 100644
--- a/lib/App/Changeloggr/Model/Change.pm
+++ b/lib/App/Changeloggr/Model/Change.pm
@@ -171,6 +171,7 @@ sub count_of_tag {
         column   => 'id',
         function => 'count(main.tag)',
     );
+    $votes->order_by({});
 
     return $votes->first->id;
 }

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



More information about the Bps-public-commit mailing list