X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FBase.pm;h=ab03a98bd3b8584cfb97919ff7de5f3cd9f889ea;hb=ba12c8acfa1dd66cbea6c9cfd40a3a33244ab6bd;hp=29c11b1237e359e4b28dfabbfbce5fb79a9ab326;hpb=83bce685261042f92421f313dd724a910c8d8f0e;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 29c11b1..ab03a98 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -1013,6 +1013,17 @@ be generated. return $new_code; } +You can also use this option to set L in your generated classes. This will leave +the generated code in the default format, but will allow you to tidy +your classes at any point in future, without worrying about changing the +portions of the file which are checksummed, since C will just +ignore all text between the markers. + + filter_generated_code => sub { + return "#<<<\n$_[2]\n#>>>"; + } + =head1 METHODS None of these methods are intended for direct invocation by regular