Thinking out loud, haven't tested or tried. The model classes are part of the app so you cannot exclude them directly.

I think there is a sneak around it. You probably set-up your model to load a schema, right? The schema class can be part of the config for a model. So I would just neuter the model by changing the schema to something harmless or empty.

The underlying lesson/point being that anything you want different between installations of a Cat app needs to be config based and not in the M/V/C spaces. Though there may be some startup/loading magick that could be applied here.

Or your installation script (Makefile.PL maybe) could strip/add the model as appropriate. I'm trying to sort out a similar issue with a project where there will be a lot of per installation customization, so if you come up with anything nice, please share!


In reply to Re: How to NOT load a Catalyst Model? by Your Mother
in thread How to NOT load a Catalyst Model? by pileofrogs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.