Closed varg90 closed 6 years ago
Unfortunately, rails_sortable now does not support multiple classes sorting. But it seems useful in some case, so I will make it sometime.
Please see the example. https://github.com/itmammoth/rails_sortable/wiki/Multiple-classes
Hi there! Is it possible to use this gem if I need to sort items that have different class / stored in different tables in the db? Both have
sort
attribute. For example:<% (first_items + second_items).each_with_sortable_id do |item, sortable_id| %>
The problem is that it stores the samesort
value in the db for each of the models independentlyThanks