-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Update position when scope changes #19
Comments
The use case here is when you move an item from one list to another. Thats a good use case and worth as feature. Let me think over this and get back to you. |
I would also find this useful, since I am using this with acts_as_tree as well and this needs this functionality. |
Ah, I forgot all about this. |
There is no sure way of doing this, since you cannot predict what behavior is intended. We can however accept a block as callbacks or hooks. |
In update, position remains the same when scope changes. I think that a solution should be to trigger
add_to_list_bottom
but I can't think of any global way, especially in complex scope cases. When it is just a field I use something like thisIs there a better way?
The text was updated successfully, but these errors were encountered: