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

sartak at bestpractical.com sartak at bestpractical.com
Wed Jul 29 15:06:18 EDT 2009


The branch, master has been updated
       via  cf488a3c5e135f53bf26728cf38128aa47c42b3e (commit)
      from  55759cff1b8fab51648103020e8cf0a8cb7535ad (commit)

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

- Log -----------------------------------------------------------------
commit cf488a3c5e135f53bf26728cf38128aa47c42b3e
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Jul 29 15:05:46 2009 -0400

    Use $self->changes instead of M(...)

diff --git a/lib/App/Changeloggr/Model/Changelog.pm b/lib/App/Changeloggr/Model/Changelog.pm
index b055c59..f266e57 100644
--- a/lib/App/Changeloggr/Model/Changelog.pm
+++ b/lib/App/Changeloggr/Model/Changelog.pm
@@ -136,7 +136,7 @@ sub commit_links {
 
 sub unvoted_changes {
     my $self = shift;
-    my $changes = M('ChangeCollection', changelog_id => $self);
+    my $changes = $self->changes;
     my $votes = $changes->join(
         type => 'left',
         column1 => 'id',
@@ -177,7 +177,7 @@ sub unvoted_changes {
 sub get_starting_position {
     my $self = shift;
 
-    my $changes = M('ChangeCollection', changelog_id => $self);
+    my $changes = $self->changes;
     $changes->order_by({
         function => 'random()',
     });

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



More information about the Bps-public-commit mailing list