<br><br><div class="gmail_quote">On Sat, Aug 15, 2009 at 4:28 PM, Eden Cardim <span dir="ltr">&lt;<a href="mailto:edencardim@gmail.com">edencardim@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
&gt; Is there a specific reason that Private actions may not have additional<br>
&gt; attributes?<br>
<br>
</div>You can achieve the same effect by using the :Action tag instead, as<br>
mst suggested in reply to the same thread:<br>
<a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg01413.html" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg01413.html</a></blockquote><div> <br></div><div><br>Yes, I read that back then.  That wasn&#39;t my question, though.  My question was *why* Private actions cannot have additional attributes?<br>
Why is there code to explicitly prevent additional attributes on Private methods?  Especially since there&#39;s a work-around by simply using :Action (or just any attribute) to make a method into an action.<br><br>Perhaps only Marcus might be able to answer that if he added that code.<br>
<br>Further, if *any* attribute can make a method into an action, is there chance at some point that only a pre-defined set of attribute values would be valid?  Not sure there is any reason to do this, but for example might want to have sub attributes on methods that are *not* actions, too.<br>
<br><br><br><br>BTW -- :Action is mentioned in the docs at:<br><br><a href="http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/Catalyst/Manual/Intro.pod#Controllers">http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/Catalyst/Manual/Intro.pod#Controllers</a><br>
<br>But, the text says:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Note that you can also supply attributes via the Controller&#39;s config so
long as you have at least one attribute on a subref to be exported
(:Action is commonly used for this) - for example the following is
equivalent to the same controller above:<br></blockquote><div><br>That doesn&#39;t sound correct.  I think just listing the method in config &quot;actions&quot; is enough.  That is,<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
__PACKAGE__-&gt;config( actions =&gt; { foo =&gt; { Path =&gt; &#39;bar&#39; } } );<br>sub foo {} <br></blockquote><br>will work because configured &quot;actions&quot; method names are just pushed onto the list of method names returned by   $meta-&gt;get_nearest_methods_with_attributes.  No &quot;:Action&quot; (or any attribute) required.<br>
</div><br><br><br></div></div><br>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org">moseley@hank.org</a><br>