Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no_update is not applied to subclasses #314

Closed
YoranBrondsema opened this issue Jun 11, 2018 · 1 comment
Closed

no_update is not applied to subclasses #314

YoranBrondsema opened this issue Jun 11, 2018 · 1 comment

Comments

@YoranBrondsema
Copy link
Contributor

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
Copy link
Contributor

Fixed through #315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants