Subject: | clarifying comment at bottom of auto generated classes |
Here is the reason for this patch:
< Khisanth> ironcamel: did you miss this? "# You can replace this text
with custom content, and it will be preserved on regeneration"
< ironcamel> Khisanth: i saw that. but that text was a comment
< ironcamel> so i assumed it meant i could add whatever comments i wnated
< ironcamel> and they wouldn't be squashed
< mst> ...
< mst> wow.
< mst> ironcamel: patch to change it to say '# You can add whatever code
or comments you like' instead then, please
Subject: | dbicloader.diff |
diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm
index baf36b1..f714ac2 100644
--- a/lib/DBIx/Class/Schema/Loader/Base.pm
+++ b/lib/DBIx/Class/Schema/Loader/Base.pm
@@ -1347,7 +1347,7 @@ sub _default_moose_custom_content {
sub _default_custom_content {
my $self = shift;
my $default = qq|\n\n# You can replace this text with custom|
- . qq| content, and it will be preserved on regeneration|;
+ . qq| code or comments, and it will be preserved on regeneration|;
if ($self->use_moose) {
$default .= $self->_default_moose_custom_content;
}