From: Slaven Rezic Date: Fri, 2 Jul 2010 08:29:01 +0000 (+0200) Subject: fix documentation on DBIx::Class::ResultSource::name_unique_constraint arguments X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6515609bb769fc957052afa939d725d7a8f819f7;p=dbsrgits%2FDBIx-Class-Historic.git fix documentation on DBIx::Class::ResultSource::name_unique_constraint arguments --- 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'