[Bps-public-commit] smokingit branch, master, updated. ccf8e6ea7641e0f59bc8e54a042d934263e1ce43

Thomas Sibley trs at bestpractical.com
Wed Mar 27 02:41:22 EDT 2013


The branch, master has been updated
       via  ccf8e6ea7641e0f59bc8e54a042d934263e1ce43 (commit)
      from  2ada62e5f741ec21ca281177fd46642cf28bbfae (commit)

Summary of changes:
 lib/Smokingit/Model/Commit.pm | 8 ++++++++
 1 file changed, 8 insertions(+)

- Log -----------------------------------------------------------------
commit ccf8e6ea7641e0f59bc8e54a042d934263e1ce43
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Mar 26 23:40:22 2013 -0700

    Include status and long_status in the REST representation of a Commit

diff --git a/lib/Smokingit/Model/Commit.pm b/lib/Smokingit/Model/Commit.pm
index e222269..1af2fbe 100644
--- a/lib/Smokingit/Model/Commit.pm
+++ b/lib/Smokingit/Model/Commit.pm
@@ -244,5 +244,13 @@ sub current_user_can {
     return $self->SUPER::current_user_can($right => %args);
 }
 
+sub jifty_serialize_format {
+    my $self = shift;
+    my $data = $self->SUPER::jifty_serialize_format(@_);
+    $data->{status}      = $self->status;
+    $data->{long_status} = $self->long_status;
+    return $data;
+}
+
 1;
 

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



More information about the Bps-public-commit mailing list