leikind / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
MIT License
537 stars 213 forks source link

Turbolinks.visit support #163

Closed ashanbrown closed 10 years ago

ashanbrown commented 10 years ago

It would be great if we could use Turbolinks.visit for auto_reload. Here's some changes to that effect (they are built on top of my changes to pick the kaminari page method). Again, no tests, because I wasn't sure what's going on with the separate test repo (seems like it would be hard to keep things in sync).

I put the visit method in the grid processor and made it public, which doesn't seem idle but it was the DRYest option. Seems like it might be better for the clause that uses it in wice_grid_saved_queries_init.js.coffee, to just be moved to the grid processor and then visit could be a private method.

leikind commented 10 years ago

that's a good one, thanks!