Closed randoum closed 7 years ago
Allow to perform bulk update by disabling act_as_list callbacks
ActiveRecord::Base.act_as_list_no_update do TodoItem.find(5).update position: 17 TodoItem.find(8).update position: 11 end
inspired from http://api.rubyonrails.org/classes/ActiveRecord/NoTouching/ClassMethods.html
@wikyd @nickpoorman @StoneFrog if you guys don't mind to participate to #244. Thanks
To newcomers : The conversation for this PR continues here #244
Allow to perform bulk update by disabling act_as_list callbacks
inspired from http://api.rubyonrails.org/classes/ActiveRecord/NoTouching/ClassMethods.html