stffn/declarative_authorization — pull request #147 by dgm (2012-05-25 22:43:50+00:00)
Title: Delete intrusive temporary object from proxy object

When we create an object in this proxy object, it persists on into the rest of the view, which can cause unintended problems.

I think wrapping this in a begin/ensure means the return value is still whatever the function returned, but we can restore the proxy object back to what is was before.