[Bps-public-commit] SD branch, master, updated. 0.73-33-g13e6fa7
spang at bestpractical.com
spang at bestpractical.com
Fri Jan 1 21:12:04 EST 2010
The branch, master has been updated
via 13e6fa7503911fc897bbed2194e08d1313a9528b (commit)
from 952e31e8e441b6ec38f00ed4a694f8208802d4f4 (commit)
Summary of changes:
lib/App/SD/Model/Attachment.pm | 2 +-
lib/App/SD/Model/Comment.pm | 2 +-
lib/App/SD/Model/Ticket.pm | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 13e6fa7503911fc897bbed2194e08d1313a9528b
Author: Christine Spang <spang at bestpractical.com>
Date: Fri Jan 1 19:34:42 2010 -0500
Three minor tweaks for Moose compatibility
It's probably not a bad idea to stay runnable with Moose despite wanting
SD users to use Mouse.
diff --git a/lib/App/SD/Model/Attachment.pm b/lib/App/SD/Model/Attachment.pm
index 6b6a48b..877e1ef 100644
--- a/lib/App/SD/Model/Attachment.pm
+++ b/lib/App/SD/Model/Attachment.pm
@@ -4,7 +4,7 @@ extends 'App::SD::Record';
use Params::Validate qw/validate/;
use constant collection_class => 'App::SD::Collection::Attachment';
-has type => ( default => 'attachment');
+has '+type' => ( default => 'attachment');
sub _default_summary_format { '%s,$luid | %s,name | %s,content_type'}
diff --git a/lib/App/SD/Model/Comment.pm b/lib/App/SD/Model/Comment.pm
index 6c4c0f0..b53007c 100644
--- a/lib/App/SD/Model/Comment.pm
+++ b/lib/App/SD/Model/Comment.pm
@@ -3,7 +3,7 @@ use Any::Moose;
extends 'App::SD::Record';
use constant collection_class => 'App::SD::Collection::Comment';
-has type => ( default => 'comment');
+has '+type' => ( default => 'comment');
sub _default_summary_format { '%s,$uuid | %s,content'}
diff --git a/lib/App/SD/Model/Ticket.pm b/lib/App/SD/Model/Ticket.pm
index 4fa2f4e..7674514 100644
--- a/lib/App/SD/Model/Ticket.pm
+++ b/lib/App/SD/Model/Ticket.pm
@@ -6,7 +6,7 @@ use Term::ANSIColor;
use App::SD::Util;
use constant collection_class => 'App::SD::Collection::Ticket';
-has type => ( default => 'ticket');
+has '+type' => ( default => 'ticket');
our $ACTIVE_STATUSES;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list