[Catalyst-commits] r13948 -
Catalyst-Action-RenderView/trunk/lib/Catalyst/Action
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Tue Feb 8 13:02:39 GMT 2011
Author: t0m
Date: 2011-02-08 13:02:39 +0000 (Tue, 08 Feb 2011)
New Revision: 13948
Modified:
Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm
Log:
Tidy up config useage in Pod
Modified: Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm
===================================================================
--- Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm 2011-02-08 12:59:32 UTC (rev 13947)
+++ Catalyst-Action-RenderView/trunk/lib/Catalyst/Action/RenderView.pm 2011-02-08 13:02:39 UTC (rev 13948)
@@ -101,18 +101,18 @@
classes from the objects in your stash. By default it will replace any
DBIx::Class resultsource objects with the class name, which cleans up the
debug output considerably, but you can change what gets scrubbed by
-setting a list of classes in
-$c->config->{'Action::RenderView'}->{ignore_classes}.
+setting a list of classes in the C<< ignore_classes >> configuration key.
+
For instance:
- $c->config->{'Action::RenderView'}->{ignore_classes} = [];
+ C<< MyApp->config('Action::RenderView' => { ignore_classes => [ ... ] }); >>
-To disable the functionality. You can also set
-config->{'Action::RenderView'}->{scrubber_func} to change what it does with the
+To disable the functionality. You can also set C<< scrubber_func >>
+to change what it does with the
classes. For instance, this will undef it instead of putting in the
class name:
- $c->config->{'Action::RenderView'}->{scrubber_func} = sub { undef $_ };
+ C<< MyApp->config('Action::RenderView' => { scrubber_func => sub { undef $_ } }); >>
=head2 Deprecation notice
@@ -148,9 +148,11 @@
Florian Ragwitz E<lt>rafl at debian.orgE<gt>
+Tomas Doran E<lt>bobtfish at bobtfish.netE<gt>
+
=head1 COPYRIGHT
-Copyright (c) 2006 - 2009
+Copyright (c) 2006 - 2011
the Catalyst::Action::RenderView L</AUTHOR>
as listed above.
More information about the Catalyst-commits
mailing list