Subject: | Documentation patch for ResultSource |
See attached patch.
Regards,
Slaven
Subject: | 0001-fix-documentation-on-DBIx-Class-ResultSource-name_un.patch |
From 92cd34f487ef97fdb3a537e11803ba4aea7188b1 Mon Sep 17 00:00:00 2001
From: Slaven Rezic <slaven@rezic.de>
Date: Fri, 2 Jul 2010 10:29:01 +0200
Subject: [PATCH] fix documentation on DBIx::Class::ResultSource::name_unique_constraint
arguments
---
lib/DBIx/Class/ResultSource.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm
index 5eb2c57..25fda37 100644
--- a/lib/DBIx/Class/ResultSource.pm
+++ b/lib/DBIx/Class/ResultSource.pm
@@ -592,14 +592,14 @@ sub add_unique_constraint {
=over 4
-=item Arguments: @colnames
+=item Arguments: \@colnames
=item Return value: Constraint name
=back
$source->table('mytable');
- $source->name_unique_constraint('col1', 'col2');
+ $source->name_unique_constraint(['col1', 'col2']);
# returns
'mytable_col1_col2'
--
1.7.0.3