- Notifications
You must be signed in to change notification settings - Fork 248
Open
Description
Say I have a model with numeric_order option:
class Category < ApplicationRecord has_closure_tree order: "position", numeric_order: true endWith this setting we lose dirty tracking after setting the parent:
category.update! parent: parent_category, name: "Foo" category.saved_change_to_name? # => falseAll dirty tracking is lost since it ends up calling reload internally.
Perhaps this code could just reload the order attribute instead of the entire record? This way dirty tracking would persist.
Metadata
Metadata
Assignees
Labels
No labels