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

sartak at bestpractical.com sartak at bestpractical.com
Thu Aug 13 22:15:29 EDT 2009


The branch, master has been updated
       via  6270b2c1cdd4f02ae2ecf9641a142b3b34e1d40a (commit)
      from  3417fdc70840964ab012e90776d4a67307b20666 (commit)

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

- Log -----------------------------------------------------------------
commit 6270b2c1cdd4f02ae2ecf9641a142b3b34e1d40a
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Aug 13 22:01:57 2009 -0400

    Fix Change->vote to adhere to new_action's API

diff --git a/lib/App/Changeloggr/Model/Change.pm b/lib/App/Changeloggr/Model/Change.pm
index 85ea3cf..fd8cb60 100644
--- a/lib/App/Changeloggr/Model/Change.pm
+++ b/lib/App/Changeloggr/Model/Change.pm
@@ -204,14 +204,15 @@ sub vote {
 
     my $vote = Jifty->web->new_action(
         class     => 'CreateVote',
-        change_id => $self->id,
-        tag       => $text,
+        arguments => {
+            change_id => $self->id,
+            tag       => $text,
+        },
     );
 
-    $vote->validate or return;
+    $vote->validate;
     $vote->run;
     return $vote->result;
-
 }
 
 1;

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



More information about the Bps-public-commit mailing list