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

Setting "<rank_column>_position" to :down doesn't get reset after save. #100

Closed
joshuapinter opened this issue Jun 23, 2015 · 1 comment
Closed

Comments

@joshuapinter
Copy link

So if you keep re-saving the same object it will keep getting pushed down, which is obscure and probably undesirable effect.

Example:

> @duck.row_order
# => 1

> @duck.update_attribute :row_order_position, :down
# => :down

> @duck.row_order
# => 2

> @duck.row_order_position
# => :down

> @duck.save
# => true

> @duck.row_order
# => 3

> @duck.save
# => true

> @duck.row_order
# => 4
@brendon
Copy link
Owner

brendon commented Jun 4, 2024

This might have been fixed in the latest version since we materialise the position as an integer on save. Feel free to let me know if not.

@brendon brendon closed this as completed Jun 4, 2024
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