Class: HideAncestry::ModelManage::Hide

Inherits:
Base
  • Object
show all
Defined in:
lib/hide_ancestry/model_manage/hide.rb

Instance Attribute Summary

Attributes inherited from Base

#instance

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from HideAncestry::ModelManage::Base

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
12
# File 'lib/hide_ancestry/model_manage/hide.rb', line 4

def call
  instance.reload
  change_hidden_status(true)
  save_parent_id

  save_child_ids
  orphan_children
  clean_ancestry
end