jcasimir/draper — Issue #119: Calling ::decorate on ActiveRecord::Relation wipes out pagination info
Author: ohwillie
Created: 2012-01-27 18:22:57+00:00
State: open

Using draper 0.10 and will_paginate 3.0.2.

If I do something like

```Person.page(1).decorate```

the ```current_page``` attribute (```instance_eval```'d onto the resultant ```ActiveRecord::Relation```) becomes nil, which causes the ```will_paginate``` view helper to fail. I haven't gotten to the root of the problem, but I can investigate further when I have some time.