X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FBase.pm;h=a0b252d019b075b82c62f4b925eb76474c212f6e;hb=70b801a45466230a822b99551411211a65b59386;hp=eff9baf6c9cc9447cb72f74260be3248c08703d6;hpb=13f976151b00bb55786299a0d8ac6a251313c3cb;p=dbsrgits%2FDBIx-Class-Schema-Loader.git
diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm
index eff9baf..a0b252d 100644
--- a/lib/DBIx/Class/Schema/Loader/Base.pm
+++ b/lib/DBIx/Class/Schema/Loader/Base.pm
@@ -613,14 +613,27 @@ a hashref of unqualified table name keys and moniker values
=item *
-a coderef for a translator function taking a L
argument (which stringifies to the
-unqualified table name) and returning a scalar moniker
+a coderef that returns the moniker, which is called with the following
+arguments:
-The function is also passed a coderef that can be called with either
-of the hashref forms to get the moniker mapped accordingly. This is
-useful if you need to handle some monikers specially, but want to use
-the hashref form for the rest.
+=over
+
+=item *
+
+the L object for the table
+
+=item *
+
+the default moniker that DBIC would ordinarily give this table
+
+=item *
+
+a coderef that can be called with either of the hashref forms to get
+the moniker mapped accordingly. This is useful if you need to handle
+some monikers specially, but want to use the hashref form for the
+rest.
+
+=back
=back
@@ -643,7 +656,7 @@ together. Examples:
Map for overriding the monikerization of individual L.
The keys are the moniker part to override, the value is either a
-hashref of coderef for mapping the corresponding part of the
+hashref or coderef for mapping the corresponding part of the
moniker. If a coderef is used, it gets called with the moniker part
and the hash key the code ref was found under.