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

sartak at bestpractical.com sartak at bestpractical.com
Wed Apr 1 14:16:56 EDT 2009


The branch, master has been updated
       via  23009d23f66fe0e6803800b25f5308a8d70591dd (commit)
      from  40cd8be887a26fbc86d381cead7d5bbed5f0402b (commit)

Summary of changes:
 lib/App/Changeloggr/Action/CreateTag.pm |    5 +++++
 lib/App/Changeloggr/Action/DeleteTag.pm |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 23009d23f66fe0e6803800b25f5308a8d70591dd
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Apr 1 14:16:49 2009 -0400

    Better success messages for tag crud

diff --git a/lib/App/Changeloggr/Action/CreateTag.pm b/lib/App/Changeloggr/Action/CreateTag.pm
index 5c879c5..d32866a 100644
--- a/lib/App/Changeloggr/Action/CreateTag.pm
+++ b/lib/App/Changeloggr/Action/CreateTag.pm
@@ -9,6 +9,11 @@ sub take_action {
     $self->SUPER::take_action(@_);
 }
 
+sub report_success {
+    my $self = shift;
+    $self->result->message(_('Added the "%1" tag', $self->record->text));
+}
+
 1;
 
 
diff --git a/lib/App/Changeloggr/Action/DeleteTag.pm b/lib/App/Changeloggr/Action/DeleteTag.pm
index 0364395..469b585 100644
--- a/lib/App/Changeloggr/Action/DeleteTag.pm
+++ b/lib/App/Changeloggr/Action/DeleteTag.pm
@@ -9,5 +9,10 @@ sub take_action {
     $self->SUPER::take_action(@_);
 }
 
+sub report_success {
+    my $self = shift;
+    $self->result->message('Removed the tag');
+}
+
 1;
 

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



More information about the Bps-public-commit mailing list