stffn/declarative_authorization — pull request #156 by melindaweathers (2012-10-02 20:35:27+00:00)
Title: Another fix for stray objects in Rails 3

Greetings. I saw the previous commit that fixed a stray object issue, but I was still encountering stray objects in my Rails 3.2 collections when doing filter_resource_access with a :nested_in. This change alleviates the problem.

Before my change, all tests were passing for me except one, and after my change, that is still the case. I'm not sure where in the tests to add something to test this fix, however. Suggestions welcome.