You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Task < ApplicationRecord
include RankedModel
ranks :row_order, with_same: :parent_id
end
I'm use with_same and my model has parent_id equal to nil.
And I have problem use '@task.update_attribute :row_order_position, new_position' if parent_id
I'm use with_same and my model has parent_id equal to nil.
And I have problem use '@task.update_attribute :row_order_position, new_position' if parent_id
but
If use alias :last it's works
The text was updated successfully, but these errors were encountered: