From: skaufman Date: Sun, 29 Jun 2014 02:33:27 +0000 (-0400) Subject: Change tab space (4 => 2), no further changes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9fbe82fb0dd6a961ba378d6b24f6f220273099bc;p=dbsrgits%2FDBIx-Class-Historic.git Change tab space (4 => 2), no further changes --- diff --git a/.mailmap b/.mailmap index 7fa161b..09f5e6e 100644 --- a/.mailmap +++ b/.mailmap @@ -28,8 +28,9 @@ Jonathan Chu Jose Luis Martinez Matt Phillips Norbert Csongrádi -Roman Filippov Peter Rabbitson +Roman Filippov +Samuel Kaufman Tim Bunce Toby Corkindale Wallace Reis diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 4c7e298..b1a0270 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -528,6 +528,8 @@ semifor: Marc Mims SineSwiper: Brendan Byrd +skaufman: Samuel Kaufman + solomon: Jared Johnson spb: Stephen Bennett diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 4496efd..84f9e68 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -172,24 +172,24 @@ See: L, L, L, L, L. If you want to make your custom ResultSet classes with L, use a template similar to: - package MyApp::Schema::ResultSet::User; + package MyApp::Schema::ResultSet::User; - use Moose; - use MooseX::NonMoose; - extends 'DBIx::Class::ResultSet'; + use Moose; + use MooseX::NonMoose; + extends 'DBIx::Class::ResultSet'; - sub BUILDARGS { $_[2] } + sub BUILDARGS { $_[2] } - ...your code... + ...your code... - __PACKAGE__->meta->make_immutable; + __PACKAGE__->meta->make_immutable; - 1; + 1; The L is necessary so that the L constructor does not clash with the regular ResultSet constructor. Alternatively, you can use: - __PACKAGE__->meta->make_immutable(inline_constructor => 0); + __PACKAGE__->meta->make_immutable(inline_constructor => 0); The L is necessary because the signature of the ResultSet C is C<< ->new($source, \%args) >>.