voxdolo/decent_exposure — pull request #37 by durran (2012-03-03 15:09:02+00:00)
Title: Blacklist @_resources from views

Currently, the `@_resources` instance variable that decent exposure encapsulates is still available in the views. Normally this is not an issue since the exposures are lazily evaluated and if the view is the first to call the defined helper method then `@_resources` will always be nil. However if the controller is the first to access the exposure for whatever reason, the value will be in the resources hash and also in the view.

This pull request explicitly blacklists the `@_resources` instance variable so it is now truly encapsulated by the controller.