Simple positioning for Active Record models.
30-May-2024 563
The aim of this gem is to allow you to easily position Active Record model instances within a scope of your choosing. In an ideal world this gem will give your model instances sequential integer positions beginning with 1. Attempts are made to make all changes within a transaction so that position integers remain consistent. To this end, directly assigning a position is discouraged, instead you can move items by declaring an item's prior or subsequent item in the list and your item will be moved to be relative to that item.
Simple positioning for Active Record models. #ruby #rubydeveloper #rubyonrails #Simple #positioning #Active #Record #models. #active #record https://rubyonrails.ba/link/simple-positioning-for-active-record-models