Module: AwesomeNestedSetOvveride::Model

Defined in:
core/lib/spree/awesome_nested_set_override.rb

Overview

Skip breaking model reload before update depth. Already addressed in collectiveidea/awesome_nested_set#413 This can be removed when a new version of awesome_nested_set is released.

Instance Method Summary collapse

Instance Method Details

#set_depth!Object



34
35
36
37
38
39
40
# File 'core/lib/spree/awesome_nested_set_override.rb', line 34

def set_depth!
  return unless has_depth_column?

  in_tenacious_transaction do
    update_depth(level)
  end
end