hashrocket / decent_exposure

A helper for creating declarative interfaces in controllers
MIT License
1.81k stars 107 forks source link

Allow method calls on the proxy object to take a block. #118

Closed eric1234 closed 9 years ago

eric1234 commented 9 years ago

If block returns the proxy object (maybe it just slightly tweaks that object) and then code operating on that proxy object calls a method that takes a block, the block is lost.

This passes the block onto the real object.

mattpolito commented 9 years ago

Thanks @eric1234 for your contribution. We're working on v3.0 now and will take your request into consideration when looking at api changes.