brendon / positioning

Simple positioning for Active Record models.
MIT License
199 stars 8 forks source link

Disabling temporarily #24

Open mattwigham opened 2 days ago

mattwigham commented 2 days ago

Hi @brendon, thanks so much for the gem. Is there a way to disable it temporarily to do manual mass updates? Something similar to your acts_as_list_no_update method?

brendon commented 16 hours ago

Thanks @mattwigham :) Happy to hear it's been of use.

There currently isn't a way to disable the gem callbacks conditionally. Can you run through the bulk updates you want to do? It could be something we add, but I'm trying to keep the library as slim as possible. Is it the case that you want other callbacks to run and just not ours?

mattwigham commented 6 hours ago

My use case is cloning a parent item and its list of children items. So all children already have explicit positions set, they just need to be maintained exactly.