leikind / wice_grid

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

to_h leaves empty sorting headers in Rails 4 #318

Closed Datyv closed 7 years ago

Datyv commented 7 years ago

Hey Yuri, we're using rails 4.2.5.2. The commit from 'Philipp Großelfinger' leaves our sorting headers empty. (http://localhost:3000/tasks?)

In our Version it just works without the .to_h method. I hope this pull request is ok.

Greetings Yves

PS.: No Idea, why the opts[:order_direction] line is in there again.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.04%) to 37.512% when pulling cc1b54adc1fea5fb82429d9ab4da0179a0fcc398 on Datyv:rails3 into 98025f36c18a2cd2f28004f45d9f72047d8f3278 on leikind:rails3.