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

sartak at bestpractical.com sartak at bestpractical.com
Wed Apr 1 14:58:54 EDT 2009


The branch, master has been updated
       via  23b8aa6474216374e8c09f9dbfa8be9393b86811 (commit)
      from  093f44695e8a91cc3bbe5fac61f0317c3ff6da73 (commit)

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

- Log -----------------------------------------------------------------
commit 23b8aa6474216374e8c09f9dbfa8be9393b86811
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Apr 1 14:58:48 2009 -0400

    Render a tag's changelog_id as hidden

diff --git a/lib/App/Changeloggr/Action/CreateTag.pm b/lib/App/Changeloggr/Action/CreateTag.pm
index 507dfdd..01af4dc 100644
--- a/lib/App/Changeloggr/Action/CreateTag.pm
+++ b/lib/App/Changeloggr/Action/CreateTag.pm
@@ -3,6 +3,14 @@ use strict;
 use warnings;
 use base 'App::Changeloggr::Action::Mixin::RequiresAdminToken', 'Jifty::Action::Record::Create';
 
+sub arguments {
+    my $self = shift;
+    my $args = $self->SUPER::arguments(@_);
+
+    $args->{changelog_id}{render_as} = 'hidden';
+    return $args;
+}
+
 sub canonicalize_text {
     my $self = shift;
     my $tag = shift;

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



More information about the Bps-public-commit mailing list