Proffer is also more restrictive: we're exposing variables at an action level rather than a controller level, so you only have to expose the minimal interface required for any given view.<div><br></div><div>I imagine it's possible to use both together: proffer to turn off ivars and decent_exposure to expose what you wanted.<br>

<br><div class="gmail_quote">On Mon, Apr 2, 2012 at 10:23 AM, mudge <span dir="ltr"><<a href="mailto:mudge@mudge.name">mudge@mudge.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

We had a brief look at decent_exposure but found that it focussed on<br>
promoting the pattern of using `helper_method` to expose functionality<br>
to views from the controller (something the list discussed recently<br>
when I raised the issue of before_filter abuse in Rails).<br>
<br>
Our goal was simpler in a way: stop Rails passing instance variables<br>
to your views; the `proffer` API came about almost as a side-effect of<br>
that.<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Apr 2, 2012 at 10:09 AM, Tom Stuart <<a href="mailto:tom@experthuman.com">tom@experthuman.com</a>> wrote:<br>
> On 2 Apr 2012, at 09:59, James Hunt wrote:<br>
>> There is more information on GitHub but the summary is that it stops Action<br>
>> Controller from exposing all defined instance variables to your views by default<br>
>> and instead provides a way to explicitly declare your dependencies instead.<br>
><br>
> This reminds me of <a href="https://github.com/voxdolo/decent_exposure" target="_blank">https://github.com/voxdolo/decent_exposure</a>. Had you previously tried that and found it inadequate / stupid / insufficiently strict?<br>


><br>
> Cheers,<br>
> -Tom<br>
> _______________________________________________<br>
> Chat mailing list<br>
> <a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
> <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></div></blockquote></div><br></div>