voxdolo/decent_exposure — pull request #32 by siwilkins (2011-11-24 15:52:33+00:00)
Title: over_expose method

Hi Stephen,

Loving decent_exposure - it's really tidied things up for us. I've just added an over_expose (get it?) method to my fork which allows you to override the value to be returned explicitly within the method if necessary, eg.

```ruby

expose(:resource)

def new
defaults = {...}
over_expose(:resource, Resource.new(defaults))
end
```

I guess on the one hand it perhaps detracts from the simplicity and convention-following, but it does also allow a bit of flexibility where there are exceptions-to-the-rule which may not warrant a default_exposure call - and it provides an alternative to the cowards way out, of reverting to using a controller instance variable for that action.

Thanks again,
Si