小松 大輔(Daisuke Komatsu) > Catalyst-Controller-AllowDisable-0.08 > Catalyst::Controller::AllowDisable

Download:
Catalyst-Controller-AllowDisable-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.08   Source  

NAME ^

Catalyst::Controller::AllowDisable - DEPRECATED.

WARNINGS ^

this module is DEPRECATED.

because equivalent mechanism is supported on Catalyst. http://lumberjaph.net/blog/index.php/2009/06/25/how-to-prevent-some-components-to-be-loaded-by-catalyst/

SYNOPSIS ^

    Package App::Web::Controller::Devel;

    use base qw/Catalyst::Controller::AllowDisable/;

    sub make_10000_users : Local {

    }

    1;

myapp.yml

 on_controller_disable:1

DESCRIPTION ^

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.

METHOD ^

new

AUTHOR ^

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

COPYRIGHT & LICENSE ^

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.

syntax highlighting: