-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Add class method acts_as_list_top as reader for configured top_of_list #213
Add class method acts_as_list_top as reader for configured top_of_list #213
Conversation
Hi @krzysiek1507, could you give a bit of a use case? Also, this change seems to be randomly breaking tests. The test suite is run in a random order each time so your additional class method is probably interfering in some way. |
Hi @brendon I need access to Maybe we should add No, something like: new_position = new_position < acts_as_list_top ? new_position + acts_as_list_top : new_position |
0f3ef57
to
c19e40c
Compare
c19e40c
to
8a520a8
Compare
@brendon what do you think? |
Hi @krzysiek1507, I'm not keen to change the way that method works. That'd be an unexpected change for a lot of people who may be relying on the fact that it just assigns a position without question. In regards to your modification, I'm at a loss as to why the test cases are now all passing. What did you change to fix it? I just want to make sure it's not just a fluke run that worked. |
@brendon I've added previously missed |
Thanks @krzysiek1507, |
For me it can be useful 👍 |
Done :) |
Thanks! |
No description provided.