brendon / acts_as_list

An ActiveRecord plugin for managing lists.
http://brendon.github.io/acts_as_list/
MIT License
2.04k stars 355 forks source link

`no_update` is not applied to subclasses #314

Closed YoranBrondsema closed 6 years ago

YoranBrondsema commented 6 years ago

When you have something like

class TodoItem < ActiveRecord::Base 
  acts_as_list 
end 

class SubTodoItem < TodoItem; end

and do

item = SubTodoItem.create!
TodoItem.acts_as_list_no_update do
  item.update!(position: 123)
end

then the computation of the position for item is still enabled.

swanandp commented 6 years ago

Fixed through #315