app/models/dc_manual_page.rb
######################################################################
# Update manual menu after page has been saved
######################################################################
Update manual menu after page has been saved
Update manual menu after page has been saved
def update_menu
  parent = self._parent
  while parent.class != DcManual do 
    parent = parent._parent 
  end
  parent.do_before_save
  parent.save
end
def update_menu parent = self . _parent while parent . class != DcManual do parent = parent . _parent end parent . do_before_save parent . save end
Update manual menu after page has been saved
Update manual menu after page has been saved