jcasimir/draper — pull request #58 by ldenman (2011-10-20 19:12:38+00:00)
Title: Return decorated collection on #to_ary for DecoratedEnumerableProxy

We had issues with render partial collections like:

render @decorated_orders

render 'members/order', :collection => @decorated_orders

We also changed the base_spec to call the 'to_ary' method; 'to_a' seemed to be deferring to #each thereby creating a false positive in the spec.