Comments (5)
👍
from acts_as_list.
+1
@jan, do you have an example how it should act? I would like to implement this feature.
from acts_as_list.
Hi @philiqq, it would work like Array#sort!, I guess.
http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-sort
my_model.that_list.sort! {|x,y| y <=> x}
from acts_as_list.
I thought about this feature but I am not sure about its behaviour. We should talk about what problems it should solve and which parameters are needed? In addition, it would be nice to have some "return and duplicate-handling" examples.
Kind Regards
from acts_as_list.
I'm going to close this for now since it's not seen any action and @swanandp mentioned he things its out of scope.
If anyone is still interested in this, feel free to start a new issue with a fresh PR.
from acts_as_list.
Related Issues (20)
- Tests for Ruby 2.7 and 3.0 HOT 3
- Is it possible to run callback for all updated records? HOT 3
- Limiting the list size HOT 1
- touch parent broken on destroy HOT 4
- Position cannot be lower than top issue HOT 4
- How to move an item to other scope at specific position HOT 3
- Attachments sorting / has_many_attached HOT 1
- Shifted records are not broadcast by Turbo Streams HOT 4
- How can I use act_as_list with a has_many_attached association (ActiveStorage, Rails 7) HOT 3
- Can I scope it based on a column in another table? HOT 14
- Bug: Possibly duplicated positions if not given `add_new_at: top` option HOT 6
- Does positioning work on nil? HOT 2
- Reorder based on scope HOT 1
- Composite primary key support HOT 4
- Scoping by attribute and specific created_at date HOT 5
- Issue with `move_to_bottom` and `bottom cannot be lower than top` with an empty list HOT 5
- How does one update position on a self referential model? HOT 2
- 2 Questions HOT 7
- STI support HOT 6
- adding list item with position not in sequence messes the existing list item positions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acts_as_list.