
Catalyst::Controller::AllowDisable - Use when you want to disable your controller.

Package App::Web::Controller::Devel;
use base qw/Catalyst::Controller::AllowDisable/;
sub make_10000_users : Local {
}
1;
myapp.yml
on_controller_disable:1

I sometime create controller only for developers which I do not want to ship it to production but I do not want to remove it also. So I create this controller module. You can disable controller which using this module using on_controller_disable=1 at config.


Tomohiro Teranishi, <tomohiro.teranishi at gmail.com>

Copyright 2008 Tomohiro Teranishi, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.